diff options
author | ngie <ngie@FreeBSD.org> | 2017-03-12 04:52:09 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-03-12 04:52:09 +0000 |
commit | 8279661d6d20dc463f504556b579d2c3cd815b73 (patch) | |
tree | 042065bc2bb30dda20918b863bb50b19c121d4ba /lib/msun/tests/fma_test.c | |
parent | 93db61de59060520fbd8ac493f5555485f2acfb9 (diff) | |
download | FreeBSD-src-8279661d6d20dc463f504556b579d2c3cd815b73.zip FreeBSD-src-8279661d6d20dc463f504556b579d2c3cd815b73.tar.gz |
MFC r314650:
Fix warnings in lib/msun/tests/... to help pave way for WARNS?= 6.
- Staticize variables.
- Use nitems liberally. Wherever nitems is used, use unsigned integers
- Remove unused variables (argc, argv, etc)
This fixes most issues -- some issues remain in logarithm_test though.
Diffstat (limited to 'lib/msun/tests/fma_test.c')
-rw-r--r-- | lib/msun/tests/fma_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/msun/tests/fma_test.c b/lib/msun/tests/fma_test.c index dfcea2a..1b9a490 100644 --- a/lib/msun/tests/fma_test.c +++ b/lib/msun/tests/fma_test.c @@ -84,7 +84,7 @@ __FBSDID("$FreeBSD$"); * This is needed because clang constant-folds fma in ways that are incorrect * in rounding modes other than FE_TONEAREST. */ -volatile double one = 1.0; +static volatile double one = 1.0; static void test_zeroes(void) @@ -472,10 +472,10 @@ test_double_rounding(void) } int -main(int argc, char *argv[]) +main(void) { int rmodes[] = { FE_TONEAREST, FE_UPWARD, FE_DOWNWARD, FE_TOWARDZERO }; - int i, j; + unsigned i, j; #if defined(__i386__) printf("1..0 # SKIP all testcases fail on i386\n"); |