Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Default to -Wno-sign-compare -Wno-pointer-sign for clang.
details: https://anonhg.NetBSD.org/src/rev/38fab2c70ef9
branches: trunk
changeset: 765425:38fab2c70ef9
user: joerg <joerg%NetBSD.org@localhost>
date: Thu May 26 12:56:24 2011 +0000
description:
Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
diffstat:
bin/ksh/Makefile | 4 +++-
bin/sh/Makefile | 4 +++-
crypto/external/bsd/heimdal/lib/libkrb5/Makefile | 4 +++-
crypto/external/bsd/openssl/lib/libcrypto/Makefile | 3 ++-
crypto/external/bsd/openssl/lib/libssl/Makefile | 3 ++-
external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile | 4 +++-
external/bsd/am-utils/bin/amd/Makefile | 4 +++-
external/bsd/am-utils/bin/fsinfo/Makefile | 4 +++-
external/bsd/bind/Makefile.inc | 4 +++-
external/bsd/libpcap/lib/Makefile | 5 ++++-
external/bsd/ntp/Makefile.inc | 6 +++++-
external/bsd/openldap/bin/ldapexop/Makefile | 4 +++-
external/bsd/openldap/lib/libldap/Makefile | 4 +++-
external/bsd/openldap/lib/libldap_r/Makefile | 3 ++-
external/bsd/pkg_install/sbin/pkg_info/Makefile | 4 +++-
external/bsd/tcpdump/bin/Makefile | 4 +++-
external/gpl2/lvm2/lib/libdevmapper/Makefile | 4 +++-
external/gpl2/lvm2/lib/liblvm/Makefile | 4 +++-
external/gpl2/lvm2/sbin/dmsetup/Makefile | 3 ++-
external/gpl2/lvm2/sbin/lvm/Makefile | 3 ++-
external/gpl2/xcvs/Makefile.inc | 5 ++++-
external/historical/nawk/bin/Makefile | 3 ++-
external/ibm-public/postfix/Makefile.inc | 3 ++-
external/public-domain/xz/Makefile.inc | 4 +++-
external/zlib/pigz/bin/pigz/Makefile | 4 +++-
gnu/lib/libstdc++-v3_4/Makefile | 5 ++++-
gnu/lib/libsupc++4/Makefile | 4 +++-
gnu/usr.bin/diffutils/diff/Makefile | 4 +++-
gnu/usr.bin/diffutils/diff3/Makefile | 4 +++-
gnu/usr.bin/diffutils/lib/Makefile | 4 +++-
gnu/usr.bin/gdb6/Makefile.inc | 7 ++++++-
gnu/usr.bin/gettext/Makefile.inc | 4 +++-
gnu/usr.bin/gettext/libgrep/Makefile | 6 +++++-
gnu/usr.bin/gettext/libnlspr/Makefile | 4 +++-
gnu/usr.bin/gettext/xgettext/Makefile | 4 +++-
gnu/usr.bin/gkermit/Makefile | 4 +++-
gnu/usr.bin/grep/grep/Makefile | 4 +++-
gnu/usr.bin/grep/lib/Makefile | 4 +++-
gnu/usr.bin/groff/Makefile.inc | 4 +++-
gnu/usr.bin/groff/src/devices/grohtml/Makefile | 4 +++-
gnu/usr.bin/groff/src/roff/troff/Makefile | 4 +++-
gnu/usr.bin/groff/src/utils/hpftodit/Makefile | 4 +++-
gnu/usr.bin/rcs/co/Makefile | 4 +++-
gnu/usr.bin/rcs/lib/Makefile | 4 +++-
gnu/usr.bin/texinfo/Makefile.inc | 4 +++-
gnu/usr.bin/texinfo/makeinfo/Makefile | 4 +++-
lib/libc/db/Makefile.inc | 4 +++-
lib/libpam/modules/pam_krb5/Makefile | 4 +++-
lib/libpam/modules/pam_ksu/Makefile | 4 +++-
lib/libperfuse/Makefile | 4 +++-
regress/lib/libc/int_fmtio/Makefile | 4 +++-
regress/sys/kern/sleeping/Makefile | 4 +++-
sbin/routed/rtquery/Makefile | 4 +++-
share/mk/bsd.sys.mk | 7 +++++--
sys/arch/i386/stand/lib/Makefile.inc | 4 +++-
sys/conf/Makefile.kern.inc | 5 ++++-
sys/lib/libsa/Makefile.inc | 4 +++-
sys/modules/ffs/Makefile | 4 +++-
sys/modules/layerfs/Makefile | 4 +++-
sys/modules/nilfs/Makefile | 4 +++-
sys/modules/null/Makefile | 4 +++-
sys/modules/overlay/Makefile | 4 +++-
sys/modules/udf/Makefile | 5 +++--
sys/modules/umap/Makefile | 4 +++-
sys/rump/fs/lib/liblayervfs/Makefile | 4 +++-
sys/rump/fs/lib/libnilfs/Makefile | 4 +++-
sys/rump/fs/lib/libnull/Makefile | 4 +++-
sys/rump/fs/lib/libudf/Makefile | 4 +++-
sys/rump/fs/lib/libumap/Makefile | 4 +++-
tests/crypto/libcrypto/Makefile.inc | 4 +++-
tests/include/Makefile | 4 +++-
tests/lib/libcurses/director/Makefile | 2 ++
tests/lib/libcurses/slave/Makefile | 4 +++-
usr.bin/midiplay/Makefile | 4 +++-
usr.bin/mkubootimage/Makefile | 4 +++-
usr.bin/netstat/Makefile | 4 +++-
usr.bin/nvi/build/Makefile | 4 +++-
usr.bin/pmap/Makefile | 4 +++-
usr.bin/telnet/Makefile | 3 ++-
usr.bin/vmstat/Makefile | 4 +++-
usr.sbin/crash/Makefile | 4 +++-
usr.sbin/dhcp/Makefile.inc | 5 ++++-
usr.sbin/ipf/Makefile.inc | 4 +++-
usr.sbin/mrouted/Makefile | 4 +++-
usr.sbin/ndbootd/Makefile | 4 +++-
usr.sbin/perfused/Makefile | 4 +++-
usr.sbin/pf/Makefile.inc | 3 ++-
usr.sbin/pppd/pppd/Makefile | 4 +++-
usr.sbin/sup/Makefile.inc | 4 ++--
89 files changed, 270 insertions(+), 91 deletions(-)
diffs (truncated from 1469 to 300 lines):
diff -r d29c2f2a3d76 -r 38fab2c70ef9 bin/ksh/Makefile
--- a/bin/ksh/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/bin/ksh/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2009/02/14 08:31:13 lukem Exp $
+# $NetBSD: Makefile,v 1.27 2011/05/26 12:56:24 joerg Exp $
WARNS=3
@@ -47,4 +47,6 @@
${HOST_SH} $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \
&& mv ksh.1.tmp ksh.1
+CWARNFLAGS.clang+= -Wno-format-security
+
.include <bsd.prog.mk>
diff -r d29c2f2a3d76 -r 38fab2c70ef9 bin/sh/Makefile
--- a/bin/sh/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/bin/sh/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.94 2010/08/30 06:26:59 christos Exp $
+# $NetBSD: Makefile,v 1.95 2011/05/26 12:56:24 joerg Exp $
# @(#)Makefile 8.4 (Berkeley) 5/5/95
.include <bsd.own.mk>
@@ -82,5 +82,7 @@
SUBDIR+=USD.doc
.endif
+CWARNFLAGS.clang+= -Wno-uninitialized
+
.include <bsd.prog.mk>
.include <bsd.subdir.mk>
diff -r d29c2f2a3d76 -r 38fab2c70ef9 crypto/external/bsd/heimdal/lib/libkrb5/Makefile
--- a/crypto/external/bsd/heimdal/lib/libkrb5/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/crypto/external/bsd/heimdal/lib/libkrb5/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,9 +1,11 @@
-# $NetBSD: Makefile,v 1.4 2011/05/25 19:21:18 he Exp $
+# $NetBSD: Makefile,v 1.5 2011/05/26 12:56:24 joerg Exp $
USE_FORT?= yes # network protocol library
NOLINT= # defined
+CWARNFLAGS.clang= -Wno-conversion -Wno-tautological-compare
+
.include <bsd.own.mk>
.include <${.CURDIR}/../../Makefile.inc>
diff -r d29c2f2a3d76 -r 38fab2c70ef9 crypto/external/bsd/openssl/lib/libcrypto/Makefile
--- a/crypto/external/bsd/openssl/lib/libcrypto/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2010/07/06 05:59:50 mrg Exp $
+# $NetBSD: Makefile,v 1.3 2011/05/26 12:56:25 joerg Exp $
# RCSid:
# Id: Makefile,v 1.33 1998/11/11 11:53:53 sjg Exp
@@ -27,6 +27,7 @@
# XXX There's a bit of work to do before we can enable warnings.
WARNS=0
+CWARNFLAGS.clang+= -Wno-empty-body -Wno-unused-value -Wno-parentheses
CPPFLAGS+= -Dlib${LIB} -I. -I${OPENSSLSRC}/crypto -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto/asn1 -I${OPENSSLSRC}/crypto/evp
diff -r d29c2f2a3d76 -r 38fab2c70ef9 crypto/external/bsd/openssl/lib/libssl/Makefile
--- a/crypto/external/bsd/openssl/lib/libssl/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/crypto/external/bsd/openssl/lib/libssl/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2010/07/06 05:59:51 mrg Exp $
+# $NetBSD: Makefile,v 1.3 2011/05/26 12:56:25 joerg Exp $
# RCSid:
# Id: Makefile,v 1.33 1998/11/11 11:53:53 sjg Exp
@@ -22,6 +22,7 @@
# XXX There's a bit of work to do before we can enable warnings.
WARNS=0
+CWARNFLAGS.clang+= -Wno-unused-value
LIB= ssl
CPPFLAGS+= -Dlib${LIB} -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile
--- a/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2011/02/27 13:05:38 plunky Exp $
+# $NetBSD: Makefile,v 1.7 2011/05/26 12:56:25 joerg Exp $
PROG= mdnsd
@@ -16,4 +16,6 @@
MAN= mdnsd.8
+CWARNFLAGS.clang+= -Wno-unused-value
+
.include <bsd.prog.mk>
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/bsd/am-utils/bin/amd/Makefile
--- a/external/bsd/am-utils/bin/amd/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/external/bsd/am-utils/bin/amd/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2010/02/08 07:56:38 plunky Exp $
+# $NetBSD: Makefile,v 1.6 2011/05/26 12:56:25 joerg Exp $
.include "${.CURDIR}/../Makefile.inc"
@@ -63,6 +63,8 @@
LPREFIX.sun_map_tok.l = sun_map_
CPPFLAGS.sun_map_tok.c += -Dyylval=sun_map_lval -Dyyerror=sun_map_error
+CWARNFLAGS.clang+= -Wno-unneeded-internal-declaration
+
YPREFIX.conf_parse.y = conf_
LPREFIX.conf_tok.l = conf_
CPPFLAGS.conf_tok.c += -Dyylval=conf_lval -Dyyerror=conf_error
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/bsd/am-utils/bin/fsinfo/Makefile
--- a/external/bsd/am-utils/bin/fsinfo/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/external/bsd/am-utils/bin/fsinfo/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/10/29 14:43:27 christos Exp $
+# $NetBSD: Makefile,v 1.4 2011/05/26 12:56:25 joerg Exp $
.include "${.CURDIR}/../Makefile.inc"
@@ -18,6 +18,8 @@
CPPFLAGS.fsi_util.c += -Dyyerror=fsi_yyerror -Dyyparse=fsi_yyparse
CPPFLAGS.fsinfo.c += -Dyyparse=fsi_yyparse
+CWARNFLAGS.clang+= -Wno-unneeded-internal-declaration
+
FSINFOOBJDIR!=cd ${.CURDIR} && ${PRINTOBJDIR}
CPPFLAGS+= -I${DIST} -I${FSINFOOBJDIR}
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/bsd/bind/Makefile.inc
--- a/external/bsd/bind/Makefile.inc Thu May 26 07:59:08 2011 +0000
+++ b/external/bsd/bind/Makefile.inc Thu May 26 12:56:24 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.10 2011/05/02 19:04:54 christos Exp $
+# $NetBSD: Makefile.inc,v 1.11 2011/05/26 12:56:25 joerg Exp $
.if !defined(BIND9_MAKEFILE_INC)
BIND9_MAKEFILE_INC=yes
@@ -9,6 +9,8 @@
WARNS?= 1
+CWARNFLAGS.clang+= -Wno-unused-value -Wno-parentheses
+
.include <bsd.own.mk>
.if ${MKCRYPTO} == "no"
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/bsd/libpcap/lib/Makefile
--- a/external/bsd/libpcap/lib/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/external/bsd/libpcap/lib/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,9 +1,12 @@
-# $NetBSD: Makefile,v 1.2 2010/12/05 03:03:27 christos Exp $
+# $NetBSD: Makefile,v 1.3 2011/05/26 12:56:25 joerg Exp $
.include <bsd.own.mk>
USE_FORT?= yes # network protocol library
+CWARNFLAGS.clang+= -Wno-format-extra-args \
+ -Wno-unneeded-internal-declaration
+
.SUFFIXES: .3 .3pcap
__sed: .USE
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/bsd/ntp/Makefile.inc
--- a/external/bsd/ntp/Makefile.inc Thu May 26 07:59:08 2011 +0000
+++ b/external/bsd/ntp/Makefile.inc Thu May 26 12:56:24 2011 +0000
@@ -1,10 +1,14 @@
-# $NetBSD: Makefile.inc,v 1.5 2010/12/04 23:08:32 christos Exp $
+# $NetBSD: Makefile.inc,v 1.6 2011/05/26 12:56:25 joerg Exp $
.if !defined(NTP_MAKEFILE_INC)
NTP_MAKEFILE_INC=yes
USE_FORT?= yes # network client/server
+CWARNFLAGS.clang+= -Wno-unneeded-internal-declaration \
+ -Wno-format-security -Wno-array-bounds \
+ -Wno-parentheses -Wno-constant-logical-operand
+
WARNS?= 5
.include <bsd.own.mk>
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/bsd/openldap/bin/ldapexop/Makefile
--- a/external/bsd/openldap/bin/ldapexop/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/external/bsd/openldap/bin/ldapexop/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,5 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2010/03/08 05:24:33 lukem Exp $
+# $NetBSD: Makefile,v 1.3 2011/05/26 12:56:26 joerg Exp $
PROG= ldapexop
+CWARNFLAGS.clang+= -Wno-format-extra-args
+
.include <bsd.prog.mk>
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/bsd/openldap/lib/libldap/Makefile
--- a/external/bsd/openldap/lib/libldap/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/external/bsd/openldap/lib/libldap/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,7 +1,9 @@
-# $NetBSD: Makefile,v 1.2 2008/05/27 08:58:26 lukem Exp $
+# $NetBSD: Makefile,v 1.3 2011/05/26 12:56:26 joerg Exp $
USE_FORT?= yes
+CWARNFLAGS.clang= -Wno-format-extra-args
+
.include "../libldap/Makefile.libldap"
LIB= ldap
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/bsd/openldap/lib/libldap_r/Makefile
--- a/external/bsd/openldap/lib/libldap_r/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/external/bsd/openldap/lib/libldap_r/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2008/10/27 07:26:29 mrg Exp $
+# $NetBSD: Makefile,v 1.4 2011/05/26 12:56:26 joerg Exp $
USE_FORT?= yes
+CWARNFLAGS.clang= -Wno-format-extra-args
.include "../libldap/Makefile.libldap"
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/bsd/pkg_install/sbin/pkg_info/Makefile
--- a/external/bsd/pkg_install/sbin/pkg_info/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/external/bsd/pkg_install/sbin/pkg_info/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2009/02/02 20:47:21 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2011/05/26 12:56:26 joerg Exp $
# Original from FreeBSD, no rcs id
PROG= pkg_info
@@ -8,4 +8,6 @@
.PATH: ${DIST}/info
+CWARNFLAGS.clang+= -Wno-format-security
+
.include <bsd.prog.mk>
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/bsd/tcpdump/bin/Makefile
--- a/external/bsd/tcpdump/bin/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/external/bsd/tcpdump/bin/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,7 +1,9 @@
-# $NetBSD: Makefile,v 1.4 2010/12/17 09:54:28 jruoho Exp $
+# $NetBSD: Makefile,v 1.5 2011/05/26 12:56:26 joerg Exp $
WARNS?= 1 # XXX: need to cleanup later
+CWARNFLAGS.clang+= -Wno-constant-logical-operand
+
.include <bsd.own.mk>
USE_FORT?= yes # network client
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/gpl2/lvm2/lib/libdevmapper/Makefile
--- a/external/gpl2/lvm2/lib/libdevmapper/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/external/gpl2/lvm2/lib/libdevmapper/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2011/03/04 22:48:29 matt Exp $
+# $NetBSD: Makefile,v 1.8 2011/05/26 12:56:26 joerg Exp $
USE_SHLIBDIR= yes
USE_FORT?= no
@@ -8,6 +8,8 @@
LIB= devmapper
+CWARNFLAGS.clang+= -Wno-comment -Wno-parentheses -Wno-switch
+
CPPFLAGS+= -I${LIBDEVMAPPER_DISTDIR} \
-I${LIBDEVMAPPER_DISTDIR}/misc \
-I${LIBDEVMAPPER_DISTDIR}/mm \
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/gpl2/lvm2/lib/liblvm/Makefile
--- a/external/gpl2/lvm2/lib/liblvm/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/external/gpl2/lvm2/lib/liblvm/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2009/12/02 01:54:20 haad Exp $
+# $NetBSD: Makefile,v 1.5 2011/05/26 12:56:26 joerg Exp $
LIBISPRIVATE= yes
@@ -9,6 +9,8 @@
LIB= lvm
+CWARNFLAGS+= -Wno-parentheses
+
CPPFLAGS+= -I${LVM2_DISTDIR}/lib -I${LVM2_DISTDIR}/include \
-I.
diff -r d29c2f2a3d76 -r 38fab2c70ef9 external/gpl2/lvm2/sbin/dmsetup/Makefile
--- a/external/gpl2/lvm2/sbin/dmsetup/Makefile Thu May 26 07:59:08 2011 +0000
+++ b/external/gpl2/lvm2/sbin/dmsetup/Makefile Thu May 26 12:56:24 2011 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2011/03/04 22:48:29 matt Exp $
+# $NetBSD: Makefile,v 1.8 2011/05/26 12:56:26 joerg Exp $
Home |
Main Index |
Thread Index |
Old Index