svn commit: r290871 - head/lib/libc/tests/stdio
Garrett Cooper
ngie at FreeBSD.org
Sun Nov 15 18:57:00 UTC 2015
Author: ngie
Date: Sun Nov 15 18:56:58 2015
New Revision: 290871
URL: https://svnweb.freebsd.org/changeset/base/290871
Log:
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
Modified:
head/lib/libc/tests/stdio/Makefile
Modified: head/lib/libc/tests/stdio/Makefile
==============================================================================
--- head/lib/libc/tests/stdio/Makefile Sun Nov 15 18:51:48 2015 (r290870)
+++ head/lib/libc/tests/stdio/Makefile Sun Nov 15 18:56:58 2015 (r290871)
@@ -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>
More information about the svn-src-head
mailing list