mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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:
parent
6c40e2d68c
commit
bea1d37ed7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290871
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue