]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fsx: fix build with WARNS=6
authorasomers <asomers@FreeBSD.org>
Mon, 21 Sep 2020 17:48:28 +0000 (17:48 +0000)
committerasomers <asomers@FreeBSD.org>
Mon, 21 Sep 2020 17:48:28 +0000 (17:48 +0000)
commitee359ee1f8b003773286c4ac32a6c09490420ac6
treefc46d699e8b76540f3d0581a07511ef3040655cd
parent312e323ca532cbbbcd66f2fc049776de18116436
fsx: fix build with WARNS=6

* signed/unsigned comparisons
* use standard warn(3)
* Suppress warnings about local vars and funcs not declared static
* const-correctness
* declaration shadows a variable in the global scope

Reviewed by: kevans
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D26516
tools/regression/fsx/Makefile
tools/regression/fsx/fsx.c