summaryrefslogtreecommitdiff
path: root/external/apache2
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2020-09-06 07:20:26 +0000
committermrg <mrg@NetBSD.org>2020-09-06 07:20:26 +0000
commit50ee54fd359e4dd8f3fa0138320464781afb298f (patch)
tree8fb07a1580c25ea1e848d2b3a657751858bfda6a /external/apache2
parent71a3f6cea6921200f4152d0ba718371a249696ca (diff)
add support for new GCC 9 warnings that may be too much to fix
right now. new address-of-packed-member and format-overflow warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd GCC_NO_FORMAT_OVERFLOW variables to remove these warnings. apply to a bunch of the tree. mostly, these are real bugs that should be fixed, but in many cases, only by removing the 'packed' attribute from some structure that doesn't really need it. (i looked at many different ones, and while perhaps 60-80% were already properly aligned, it wasn't clear to me that the uses were always coming from sane data vs network alignment, so it doesn't seem safe to remove packed without careful research for each affect struct.) clang already warned (and was not erroring) for many of these cases, but gcc picked up dozens more.
Diffstat (limited to 'external/apache2')
-rw-r--r--external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile b/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile
index 2b03f0dee57..539b65201c9 100644
--- a/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile
+++ b/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2018/11/18 18:58:44 christos Exp $
+# $NetBSD: Makefile,v 1.13 2020/09/06 07:20:26 mrg Exp $
PROG= mdnsd
@@ -18,5 +18,6 @@ COPTS.uds_daemon.c += -Wno-stack-protector
MAN= mdnsd.8
CWARNFLAGS.clang+= -Wno-unused-value -Wno-error=address-of-packed-member
+CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER}
.include <bsd.prog.mk>