Source-Changes-HG archive

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

[src/trunk]: src Disable a couple of warnings until further investigation.



details:   https://anonhg.NetBSD.org/src/rev/c7548372df9c
branches:  trunk
changeset: 820573:c7548372df9c
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Jan 11 12:19:43 2017 +0000

description:
Disable a couple of warnings until further investigation.

diffstat:

 external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile |  4 ++--
 external/bsd/dhcpcd/sbin/Makefile.inc                  |  3 ++-
 external/bsd/ipf/Makefile.inc                          |  5 +++--
 external/bsd/ntp/lib/libopts/Makefile                  |  3 ++-
 external/bsd/tcpdump/bin/Makefile                      |  4 +++-
 sbin/newfs_udf/Makefile                                |  4 +++-
 share/mk/bsd.kmodule.mk                                |  4 +++-
 sys/conf/Makefile.kern.inc                             |  5 +++--
 sys/rump/fs/lib/libudf/Makefile                        |  4 ++--
 sys/rump/net/lib/Makefile.inc                          |  4 +++-
 usr.sbin/bootp/common/Makefile                         |  4 +++-
 usr.sbin/installboot/Makefile                          |  4 +++-
 usr.sbin/makefs/udf/Makefile.inc                       |  3 ++-
 usr.sbin/pf/Makefile.inc                               |  3 ++-
 usr.sbin/rtadvd/Makefile                               |  3 ++-
 15 files changed, 38 insertions(+), 19 deletions(-)

diffs (238 lines):

diff -r 5c95f9248898 -r c7548372df9c external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile
--- a/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile    Wed Jan 11 12:19:03 2017 +0000
+++ b/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile    Wed Jan 11 12:19:43 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.7 2011/05/26 12:56:25 joerg Exp $
+#      $NetBSD: Makefile,v 1.8 2017/01/11 12:19:43 joerg Exp $
 
 PROG=  mdnsd
 
@@ -16,6 +16,6 @@
 
 MAN=   mdnsd.8
 
-CWARNFLAGS.clang+=     -Wno-unused-value
+CWARNFLAGS.clang+=     -Wno-unused-value -Wno-error=address-of-packed-member
 
 .include <bsd.prog.mk>
diff -r 5c95f9248898 -r c7548372df9c external/bsd/dhcpcd/sbin/Makefile.inc
--- a/external/bsd/dhcpcd/sbin/Makefile.inc     Wed Jan 11 12:19:03 2017 +0000
+++ b/external/bsd/dhcpcd/sbin/Makefile.inc     Wed Jan 11 12:19:43 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.2 2008/09/19 23:00:49 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.3 2017/01/11 12:19:43 joerg Exp $
 
 .include <bsd.own.mk>
 
@@ -9,3 +9,4 @@
 LDSTATIC?=     -static
 .endif
 
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member
diff -r 5c95f9248898 -r c7548372df9c external/bsd/ipf/Makefile.inc
--- a/external/bsd/ipf/Makefile.inc     Wed Jan 11 12:19:03 2017 +0000
+++ b/external/bsd/ipf/Makefile.inc     Wed Jan 11 12:19:43 2017 +0000
@@ -1,9 +1,10 @@
-#      $NetBSD: Makefile.inc,v 1.2 2013/09/21 22:28:12 joerg Exp $
+#      $NetBSD: Makefile.inc,v 1.3 2017/01/11 12:19:43 joerg Exp $
 
 WARNS?=        1       # XXX -Wcast-qual -Wshadow
 CWARNFLAGS.clang+=     -Wno-format -Wno-tautological-compare \
                        -Wno-self-assign -Wno-array-bounds \
-                       -Wno-error=unused-const-variable
+                       -Wno-error=unused-const-variable \
+                       -Wno-error=address-of-packed-member
 
 .include <bsd.own.mk>
 
diff -r 5c95f9248898 -r c7548372df9c external/bsd/ntp/lib/libopts/Makefile
--- a/external/bsd/ntp/lib/libopts/Makefile     Wed Jan 11 12:19:03 2017 +0000
+++ b/external/bsd/ntp/lib/libopts/Makefile     Wed Jan 11 12:19:43 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.13 2014/12/23 20:26:30 joerg Exp $
+#      $NetBSD: Makefile,v 1.14 2017/01/11 12:19:43 joerg Exp $
 
 LIBISPRIVATE=yes
 
@@ -22,5 +22,6 @@
 .else
 COPTS.libopts.c+=      ${${ACTIVE_CC} == "gcc":? -Wno-format-contains-nul :}
 .endif
+COPTS.libopts.c+=      ${${ACTIVE_CC} == "clang":? -Wno-format :}
 
 .include <bsd.lib.mk>
diff -r 5c95f9248898 -r c7548372df9c external/bsd/tcpdump/bin/Makefile
--- a/external/bsd/tcpdump/bin/Makefile Wed Jan 11 12:19:03 2017 +0000
+++ b/external/bsd/tcpdump/bin/Makefile Wed Jan 11 12:19:43 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.15 2016/12/02 02:14:03 riastradh Exp $    
+#      $NetBSD: Makefile,v 1.16 2017/01/11 12:19:43 joerg Exp $        
 
 WARNS?=        1       # XXX: need to cleanup later
 
@@ -195,4 +195,6 @@
        @rm -f ${.TARGET}
        cp ${.ALLSRC} ${.TARGET}
 
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member
+
 .include <bsd.prog.mk>
diff -r 5c95f9248898 -r c7548372df9c sbin/newfs_udf/Makefile
--- a/sbin/newfs_udf/Makefile   Wed Jan 11 12:19:03 2017 +0000
+++ b/sbin/newfs_udf/Makefile   Wed Jan 11 12:19:43 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2014/03/18 18:20:39 riastradh Exp $
+# $NetBSD: Makefile,v 1.6 2017/01/11 12:19:43 joerg Exp $
 
 .include <bsd.own.mk>
 
@@ -14,4 +14,6 @@
 DPADD+=${LIBUTIL}
 LDADD+=-lutil
 
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member
+
 .include <bsd.prog.mk>
diff -r 5c95f9248898 -r c7548372df9c share/mk/bsd.kmodule.mk
--- a/share/mk/bsd.kmodule.mk   Wed Jan 11 12:19:03 2017 +0000
+++ b/share/mk/bsd.kmodule.mk   Wed Jan 11 12:19:43 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.kmodule.mk,v 1.58 2016/02/02 18:38:10 christos Exp $
+#      $NetBSD: bsd.kmodule.mk,v 1.59 2017/01/11 12:19:43 joerg Exp $
 
 # We are not building this with PIE
 MKPIE=no
@@ -26,6 +26,8 @@
 CPPFLAGS+=     -isystem ${S}/../common/include
 CPPFLAGS+=     -D_KERNEL -D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESCR
 
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member -Wno-error=constant-conversion
+
 # XXX until the kernel is fixed again...
 CFLAGS+=       -fno-strict-aliasing -Wno-pointer-sign
 
diff -r 5c95f9248898 -r c7548372df9c sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc        Wed Jan 11 12:19:03 2017 +0000
+++ b/sys/conf/Makefile.kern.inc        Wed Jan 11 12:19:43 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.kern.inc,v 1.255 2017/01/08 17:10:35 christos Exp $
+#      $NetBSD: Makefile.kern.inc,v 1.256 2017/01/11 12:19:43 joerg Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -87,7 +87,8 @@
 CWARNFLAGS+=   -Wno-sign-compare
 
 CWARNFLAGS.clang+=     -Wno-unknown-pragmas -Wno-conversion \
-                       -Wno-self-assign
+                       -Wno-self-assign -Wno-error=address-of-packed-member \
+                       -Wno-error=constant-conversion
 
 CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":? \
     -Wno-shift-count-negative -Wno-shift-count-overflow:}
diff -r 5c95f9248898 -r c7548372df9c sys/rump/fs/lib/libudf/Makefile
--- a/sys/rump/fs/lib/libudf/Makefile   Wed Jan 11 12:19:03 2017 +0000
+++ b/sys/rump/fs/lib/libudf/Makefile   Wed Jan 11 12:19:43 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.9 2015/10/19 16:16:36 pooka Exp $
+#      $NetBSD: Makefile,v 1.10 2017/01/11 12:19:44 joerg Exp $
 #
 
 .PATH:  ${.CURDIR}/../../../../fs/udf
@@ -11,7 +11,7 @@
        udf_strat_direct.c udf_strat_sequential.c udf_strat_rmw.c \
        udf_rename.c
 
-CWARNFLAGS.clang+=     -Wno-self-assign
+CWARNFLAGS.clang+=     -Wno-self-assign -Wno-error=address-of-packed-member
 
 .include <bsd.lib.mk>
 .include <bsd.klinks.mk>
diff -r 5c95f9248898 -r c7548372df9c sys/rump/net/lib/Makefile.inc
--- a/sys/rump/net/lib/Makefile.inc     Wed Jan 11 12:19:03 2017 +0000
+++ b/sys/rump/net/lib/Makefile.inc     Wed Jan 11 12:19:43 2017 +0000
@@ -1,6 +1,8 @@
-#      $NetBSD: Makefile.inc,v 1.6 2016/01/26 23:12:18 pooka Exp $
+#      $NetBSD: Makefile.inc,v 1.7 2017/01/11 12:19:44 joerg Exp $
 #
 
 RUMPTOP=       ${.CURDIR}/../../..
 
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member -Werror=constant-conversion
+
 .include "${RUMPTOP}/Makefile.rump"
diff -r 5c95f9248898 -r c7548372df9c usr.sbin/bootp/common/Makefile
--- a/usr.sbin/bootp/common/Makefile    Wed Jan 11 12:19:03 2017 +0000
+++ b/usr.sbin/bootp/common/Makefile    Wed Jan 11 12:19:43 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.7 2008/05/03 14:48:31 lukem Exp $
+#      $NetBSD: Makefile,v 1.8 2017/01/11 12:19:44 joerg Exp $
 
 LIBISPRIVATE=  yes
 
@@ -7,4 +7,6 @@
        report.c tzone.c
 CPPFLAGS+= -DETC_ETHERS -DSYSLOG -DDEBUG
 
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member
+
 .include <bsd.lib.mk>
diff -r 5c95f9248898 -r c7548372df9c usr.sbin/installboot/Makefile
--- a/usr.sbin/installboot/Makefile     Wed Jan 11 12:19:03 2017 +0000
+++ b/usr.sbin/installboot/Makefile     Wed Jan 11 12:19:43 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.50 2015/06/06 15:45:47 joerg Exp $
+#      $NetBSD: Makefile,v 1.51 2017/01/11 12:19:44 joerg Exp $
 #
 
 .include <bsd.own.mk>
@@ -51,4 +51,6 @@
 DPADD+= ${LIBUTIL}
 .endif
 
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member
+
 .include <bsd.prog.mk>
diff -r 5c95f9248898 -r c7548372df9c usr.sbin/makefs/udf/Makefile.inc
--- a/usr.sbin/makefs/udf/Makefile.inc  Wed Jan 11 12:19:03 2017 +0000
+++ b/usr.sbin/makefs/udf/Makefile.inc  Wed Jan 11 12:19:43 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.2 2013/08/05 18:45:00 reinoud Exp $
+#      $NetBSD: Makefile.inc,v 1.3 2017/01/11 12:19:44 joerg Exp $
 #
 
 UDF=   ${NETBSDSRCDIR}/sys/fs/udf
@@ -11,3 +11,4 @@
 
 SRCS += udf_create.c udf_write.c udf_osta.c
 
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member -Wno-error=constant-conversion
diff -r 5c95f9248898 -r c7548372df9c usr.sbin/pf/Makefile.inc
--- a/usr.sbin/pf/Makefile.inc  Wed Jan 11 12:19:03 2017 +0000
+++ b/usr.sbin/pf/Makefile.inc  Wed Jan 11 12:19:43 2017 +0000
@@ -1,7 +1,8 @@
-#      $NetBSD: Makefile.inc,v 1.9 2015/01/29 03:31:35 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.10 2017/01/11 12:19:44 joerg Exp $
 
 WARNS?=        1       # XXX -Wshadow -Wcast-qual -Wsign-compare
 CWARNFLAGS.clang+=     -Wno-tautological-compare
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member
 
 CPPFLAGS+= -D_OPENBSD_SOURCE
 
diff -r 5c95f9248898 -r c7548372df9c usr.sbin/rtadvd/Makefile
--- a/usr.sbin/rtadvd/Makefile  Wed Jan 11 12:19:03 2017 +0000
+++ b/usr.sbin/rtadvd/Makefile  Wed Jan 11 12:19:43 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2016/06/15 13:57:26 riastradh Exp $
+# $NetBSD: Makefile,v 1.20 2017/01/11 12:19:44 joerg Exp $
 
 WARNS?=        4
 
@@ -25,5 +25,6 @@
 CPPFLAGS+=     -DRUMP_ACTION
 .endif
 
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member
 
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index