Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Nov 2015 18:56:58 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r290871 - head/lib/libc/tests/stdio
Message-ID:  <201511151856.tAFIuwLh059636@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511151856.tAFIuwLh059636>