]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
librt: tests: fix minor issues with higher WARNS
authorkevans <kevans@FreeBSD.org>
Thu, 10 Sep 2020 17:53:00 +0000 (17:53 +0000)
committerkevans <kevans@FreeBSD.org>
Thu, 10 Sep 2020 17:53:00 +0000 (17:53 +0000)
commit67b85c6fb27af29d20a94c6ca01d1942b3ef0cc3
tree10dea2d268e4c0ac195fc791cafca6f9c66ec84a
parentcd384b4178f66d5e6c7f5171186fc1b6c5507f8a
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