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
This commit is contained in:
ngie 2015-11-15 18:56:58 +00:00
parent e10e162c71
commit 0837fd3ba4

View File

@ -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>