]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
librt: tests: fix minor issues with higher WARNS
authorKyle Evans <kevans@FreeBSD.org>
Thu, 10 Sep 2020 17:53:00 +0000 (17:53 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 10 Sep 2020 17:53:00 +0000 (17:53 +0000)
commitac29e8a94f796923fe0b42ff5eb644e137ba7d77
tree10dea2d268e4c0ac195fc791cafca6f9c66ec84a
parent3c134670993bf525fcd6c4dfef84a3dfc3d4ed1b
librt: tests: fix minor issues with higher WARNS

got_sigalrm is a global with external linkage and must therefore have a
previous extern declaration. There's no reason to maintain the status quo
there, so just make it static.

The result var is unused.

This part of the test has not been upstreamed, presumably because it exists
solely for sem_clockwait_np. We should perhaps consider moving it into its
own test file outside of ^/contrib/netbsd-tests, but this can happen later.

MFC after: 1 week
contrib/netbsd-tests/lib/librt/t_sem.c