Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests avoid new GCC 9 warnings.



details:   https://anonhg.NetBSD.org/src/rev/f76ba8c5ac74
branches:  trunk
changeset: 954587:f76ba8c5ac74
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Sep 07 00:29:14 2020 +0000

description:
avoid new GCC 9 warnings.

diffstat:

 tests/fs/common/Makefile     |   3 ++-
 tests/lib/libc/misc/Makefile |  12 +++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

diffs (45 lines):

diff -r b618373a54fd -r f76ba8c5ac74 tests/fs/common/Makefile
--- a/tests/fs/common/Makefile  Mon Sep 07 00:28:44 2020 +0000
+++ b/tests/fs/common/Makefile  Mon Sep 07 00:29:14 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.14 2020/06/01 14:42:03 christos Exp $
+#      $NetBSD: Makefile,v 1.15 2020/09/07 00:29:14 mrg Exp $
 #
 
 .include <bsd.own.mk>
@@ -40,6 +40,7 @@
 CPPFLAGS+=     -DUSE_RUMP -DLFS_CLEANER_AS_LIB
 
 CWARNFLAGS.clang+=     -Wno-error=absolute-value
+CWARNFLAGS.gcc+=       ${GCC_NO_ADDR_OF_PACKED_MEMBER}
 COPTS.fstest_nfs.c+=   ${GCC_NO_FORMAT_TRUNCATION}
 COPTS.clnt_bcast.c+=   ${GCC_NO_CAST_FUNCTION_TYPE}
 COPTS.clnt_generic.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
diff -r b618373a54fd -r f76ba8c5ac74 tests/lib/libc/misc/Makefile
--- a/tests/lib/libc/misc/Makefile      Mon Sep 07 00:28:44 2020 +0000
+++ b/tests/lib/libc/misc/Makefile      Mon Sep 07 00:29:14 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2020/01/30 00:42:58 christos Exp $
+# $NetBSD: Makefile,v 1.7 2020/09/07 00:29:14 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -28,12 +28,14 @@
 .endif
 COPTS.t_ubsan.c += -Wno-stack-protector
 COPTS.t_ubsanxx.cpp += -Wno-stack-protector
-COPTS.ubsan.c+=    ${${ACTIVE_CC} == "clang" && ${MACHINE_ARCH} == "powerpc":?  -O0 :}
-
+COPTS.ubsan.c+=    ${${ACTIVE_CC} == "clang" && ${MACHINE_ARCH} == "powerpc":? -O0 :}
 
 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
-COPTS.t_ubsan.c+=      -Wno-int-in-bool-context
-COPTS.t_ubsanxx.cpp+=  -Wno-int-in-bool-context
+COPTS.t_ubsan.c+=      ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-int-in-bool-context :}
+COPTS.t_ubsanxx.cpp+=  ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-int-in-bool-context :}
 .endif
 
+# XXX
+COPTS.ubsan.c+=        ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -Wno-error=builtin-declaration-mismatch :}
+
 .include <bsd.test.mk>



Home | Main Index | Thread Index | Old Index