Source-Changes-HG archive

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

[src/trunk]: src/share/mk provide a no-addr-of-packed-member for both clang a...



details:   https://anonhg.NetBSD.org/src/rev/9538a6b0a8b6
branches:  trunk
changeset: 956010:9538a6b0a8b6
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 18 19:58:02 2020 +0000

description:
provide a no-addr-of-packed-member for both clang and gcc

diffstat:

 share/mk/bsd.own.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 9880d6009b5f -r 9538a6b0a8b6 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Sun Oct 18 19:57:44 2020 +0000
+++ b/share/mk/bsd.own.mk       Sun Oct 18 19:58:02 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.1227 2020/10/17 07:40:21 mrg Exp $
+#      $NetBSD: bsd.own.mk,v 1.1228 2020/10/18 19:58:02 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -872,6 +872,13 @@
 GCC_NO_ADDR_OF_PACKED_MEMBER=  ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -Wno-error=address-of-packed-member :}
 
 #
+# Clang warnings
+#
+CLANG_NO_ADDR_OF_PACKED_MEMBER=        ${${ACTIVE_CC} == "clang" :? -Wno-error=address-of-packed-member :}
+
+NO_ADDR_OF_PACKED_MEMBER=      ${CLANG_NO_ADDR_OF_PACKED_MEMBER} ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+
+#
 # The ia64 port is incomplete.
 #
 MKGDB.ia64=    no



Home | Main Index | Thread Index | Old Index