diff options
author | ngie <ngie@FreeBSD.org> | 2015-11-15 18:56:58 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-11-15 18:56:58 +0000 |
commit | 0837fd3ba45e8ae8e33401403d5f490a64766847 (patch) | |
tree | f51b3452db8c3d8cb610c603b1d209ed9097d0a4 /lib/libc/tests | |
parent | e10e162c71d1549abfd7b5fc7ae3751bd62cd759 (diff) | |
download | FreeBSD-src-0837fd3ba45e8ae8e33401403d5f490a64766847.zip FreeBSD-src-0837fd3ba45e8ae8e33401403d5f490a64766847.tar.gz |
Disable -Wformat with scanfloat_test when compiling with gcc to avoid a
"use of assignment suppression and length modifier together in scanf format"
warning on line 90 (it's intentional)
MFC after: 1 week
X-MFC with: r290537, r290856, r290860
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib/libc/tests')
-rw-r--r-- | lib/libc/tests/stdio/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/tests/stdio/Makefile b/lib/libc/tests/stdio/Makefile index 7df144b..7896422 100644 --- a/lib/libc/tests/stdio/Makefile +++ b/lib/libc/tests/stdio/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + ATF_TESTS_C+= fdopen_test ATF_TESTS_C+= fmemopen2_test ATF_TESTS_C+= fopen2_test @@ -32,6 +34,12 @@ LDADD.printfloat_test+= -lm DPADD.scanfloat_test+= ${LIBM} LDADD.scanfloat_test+= -lm +.if ${COMPILER_TYPE} == "gcc" +# 90: use of assignment suppression and length modifier together in scanf format +PROG_OVERRIDE_VARS+= NO_WFORMAT +NO_WFORMAT.scanfloat_test= +.endif + .include "../Makefile.netbsd-tests" .include <bsd.test.mk> |