Module Name:    src
Committed By:   christos
Date:           Sun Oct 18 19:58:02 UTC 2020

Modified Files:
        src/share/mk: bsd.own.mk

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


To generate a diff of this commit:
cvs rdiff -u -r1.1227 -r1.1228 src/share/mk/bsd.own.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1227 src/share/mk/bsd.own.mk:1.1228
--- src/share/mk/bsd.own.mk:1.1227	Sat Oct 17 03:40:21 2020
+++ src/share/mk/bsd.own.mk	Sun Oct 18 15:58:02 2020
@@ -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_CAST_FUNCTION_TYPE=	${${ACTIVE_CC
 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

Reply via email to