Source-Changes-HG archive

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

[src/trunk]: src/sys/modules/pf Avoid alignment of packed member



details:   https://anonhg.NetBSD.org/src/rev/e02fde579bf7
branches:  trunk
changeset: 955986:e02fde579bf7
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 18 14:36:43 2020 +0000

description:
Avoid alignment of packed member

diffstat:

 sys/modules/pf/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 7a4530c77f14 -r e02fde579bf7 sys/modules/pf/Makefile
--- a/sys/modules/pf/Makefile   Sun Oct 18 14:36:09 2020 +0000
+++ b/sys/modules/pf/Makefile   Sun Oct 18 14:36:43 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2019/09/29 23:45:00 mrg Exp $
+# $NetBSD: Makefile,v 1.13 2020/10/18 14:36:43 christos Exp $
 
 .include "../Makefile.inc"
 
@@ -25,5 +25,8 @@
 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
 COPTS.pf.c+=   -Wno-error=implicit-fallthrough
 .endif
+COPTS.pf.c += -Wno-error=address-of-packed-member
+COPTS.pf_norm.c += -Wno-error=address-of-packed-member
+COPTS.pf_table.c += -Wno-error=address-of-packed-member
 
 .include <bsd.kmodule.mk>



Home | Main Index | Thread Index | Old Index