Globally define -Wno-pointer-sign, as it has become a pointless

exercise of "add it to every Makefile individually".

XXX: should autosynchronize with the rest of the kernel buildflags
in sys/conf/Makefile.kern.inc.
This commit is contained in:
pooka 2010-02-16 20:42:44 +00:00
parent 97fada1858
commit 643ba90bf0
34 changed files with 36 additions and 80 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.rump,v 1.49 2010/02/09 16:16:26 pooka Exp $
# $NetBSD: Makefile.rump,v 1.50 2010/02/16 20:42:44 pooka Exp $
#
WARNS?= 3 # XXX: src/sys won't compile with -Wsign-compare yet
@ -12,7 +12,7 @@ CPPFLAGS:= -I${RUMPTOP}/include ${CPPFLAGS}
.endif
CFLAGS+= -ffreestanding -fno-strict-aliasing
CWARNFLAGS+= -Wno-format-zero-length
CWARNFLAGS+= -Wno-format-zero-length -Wno-pointer-sign
CPPFLAGS+= -D_RUMPKERNEL
CPPFLAGS+= -D_KERNEL -DMULTIPROCESSOR -D_MODULE -DMODULAR
CPPFLAGS+= -DMAXUSERS=32

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2009/09/07 11:23:39 pooka Exp $
# $NetBSD: Makefile,v 1.3 2010/02/16 20:42:44 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev
@ -9,7 +9,6 @@ SRCS= cgd.c cgd_crypto.c
SRCS+= component.c
CPPFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2009/11/23 13:40:11 pooka Exp $
# $NetBSD: Makefile,v 1.7 2010/02/16 20:42:44 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../kern \
@ -18,7 +18,5 @@ SRCS+= subr_disk.c subr_disk_open.c
# sys/dev
SRCS+= dksubr.c dk.c
CFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2009/12/04 22:13:59 haad Exp $
# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:45 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev/dm
@ -10,7 +10,6 @@ SRCS= device-mapper.c dm_dev.c dm_ioctl.c dm_pdev.c dm_table.c dm_target.c \
SRCS+= component.c
CPPFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
LDADD+= -lrumpvfs

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2009/09/06 20:42:26 pooka Exp $
# $NetBSD: Makefile,v 1.3 2010/02/16 20:42:45 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../netsmb
@ -13,7 +13,5 @@ SRCS+= component.c
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
#CPPFLAGS+= -DSMB_SOCKET_DEBUG -DSMB_IOD_DEBUG
CFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2009/09/08 20:12:52 pooka Exp $
# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:45 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev
@ -9,7 +9,6 @@ SRCS= rnd.c rndpool.c
SRCS+= component.c
CPPFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2010/01/31 03:06:59 pooka Exp $
# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:45 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev/sysmon
@ -11,7 +11,6 @@ SRCS= sysmon_taskq.c sysmon_power.c sysmon_envsys.c sysmon_envsys_events.c \
SRCS+= component.c
CFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs -I${.CURDIR}/opt
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2010/02/11 02:22:09 pooka Exp $
# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:45 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev/usb ${.CURDIR}/../../../../kern
@ -12,7 +12,6 @@ SRCS+= tty.c tty_conf.c tty_tty.c tty_subr.c
IOCONFIG= UCOM.ioconf
CFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2010/02/11 02:22:09 pooka Exp $
# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:45 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev/usb ${.CURDIR}/../../../../kern
@ -11,7 +11,6 @@ SRCS+= ulpt_at_usb.c
IOCONFIG= ULPT.ioconf
CFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2010/02/12 12:07:12 pooka Exp $
# $NetBSD: Makefile,v 1.3 2010/02/16 20:42:45 pooka Exp $
#
#
# umass. includes scsibus+sd for simplicity due to the umass code
@ -22,7 +22,6 @@ SRCS+= sd_at_scsibus_at_umass.c
SRCS= dummy.c
.endif
CFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${.CURDIR}/opt -I${RUMPTOP}/librump/rumpvfs
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2010/02/12 12:07:12 pooka Exp $
# $NetBSD: Makefile,v 1.3 2010/02/16 20:42:45 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev/usb
@ -14,7 +14,6 @@ SRCS= dummy.c
#CPPFLAGS+= -DUHUB_DEBUG
CFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${.CURDIR}/opt
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2010/02/11 02:22:10 pooka Exp $
# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:45 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev/wscons
@ -9,7 +9,6 @@ SRCS= wsevent.c wskbd.c wskbdutil.c wsmouse.c
SRCS+= component.c
CPPFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs -I${.CURDIR}/opt
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2010/02/03 21:18:38 pooka Exp $
# $NetBSD: Makefile,v 1.3 2010/02/16 20:42:45 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev/usb ${.CURDIR}/../../../../kern \
@ -16,7 +16,6 @@ SRCS+= tty.c tty_conf.c tty_tty.c tty_subr.c
IOCONFIG= UKBD.ioconf
CFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2010/02/03 21:18:38 pooka Exp $
# $NetBSD: Makefile,v 1.3 2010/02/16 20:42:45 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev/usb ${.CURDIR}/../../../../kern
@ -15,7 +15,6 @@ SRCS+= tty.c tty_conf.c tty_tty.c tty_subr.c
IOCONFIG= UMS.ioconf
CFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2009/10/04 10:43:03 pooka Exp $
# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:45 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev/usb
@ -9,7 +9,6 @@ SRCS= if_rum.c
SRCS+= rum_at_usb.c
CFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${.CURDIR}/opt -I${RUMPTOP}/librump/rumpnet/opt
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2008/08/05 14:42:03 pooka Exp $
# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:45 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../fs/cd9660
@ -8,7 +8,5 @@ LIB= rumpfs_cd9660
SRCS= cd9660_bmap.c cd9660_node.c cd9660_util.c cd9660_vnops.c \
cd9660_lookup.c cd9660_rrip.c cd9660_vfsops.c
CFLAGS+=-Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2008/07/29 13:17:42 pooka Exp $
# $NetBSD: Makefile,v 1.3 2010/02/16 20:42:46 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../ufs/ext2fs
@ -9,7 +9,5 @@ SRCS= ext2fs_alloc.c ext2fs_balloc.c ext2fs_bmap.c ext2fs_bswap.c \
ext2fs_inode.c ext2fs_lookup.c ext2fs_readwrite.c ext2fs_subr.c \
ext2fs_vfsops.c ext2fs_vnops.c
CFLAGS+=-Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2009/05/02 01:15:53 pooka Exp $
# $NetBSD: Makefile,v 1.10 2010/02/16 20:42:46 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../ufs/ffs ${.CURDIR}/../../../../ufs/ufs
@ -14,7 +14,6 @@ SRCS+= ufs_bmap.c ufs_dirhash.c ufs_ihash.c ufs_inode.c ufs_lookup.c \
CPPFLAGS+= -DFFS_EI -DWAPBL -DAPPLE_UFS
CPPFLAGS+= -DUFS_DIRHASH -DWAPBL -DAPPLE_UFS
CFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2008/07/29 13:17:42 pooka Exp $
# $NetBSD: Makefile,v 1.3 2010/02/16 20:42:46 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../fs/hfs
@ -7,7 +7,5 @@ LIB= rumpfs_hfs
SRCS= hfs_nhash.c hfs_subr.c hfs_vfsops.c hfs_vnops.c libhfs.c unicode.c
CFLAGS+=-Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2008/07/29 13:17:43 pooka Exp $
# $NetBSD: Makefile,v 1.6 2010/02/16 20:42:46 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../ufs/lfs
@ -9,7 +9,7 @@ SRCS= lfs_alloc.c lfs_balloc.c lfs_bio.c lfs_cksum.c lfs_debug.c \
lfs_inode.c lfs_itimes.c lfs_rfw.c lfs_segment.c lfs_subr.c \
lfs_syscalls.c lfs_vfsops.c lfs_vnops.c
CFLAGS+= -Wno-pointer-sign -DLFS_KERNEL_RFW
CFLAGS+= -DLFS_KERNEL_RFW
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2008/08/05 14:42:03 pooka Exp $
# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:46 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../fs/msdosfs
@ -8,7 +8,5 @@ LIB= rumpfs_msdos
SRCS= msdosfs_conv.c msdosfs_fat.c msdosfs_vfsops.c msdosfs_denode.c \
msdosfs_lookup.c msdosfs_vnops.c
CFLAGS+=-Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2008/12/29 23:17:42 pooka Exp $
# $NetBSD: Makefile,v 1.10 2010/02/16 20:42:46 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../nfs
@ -12,7 +12,6 @@ SRCS= krpc_subr.c nfs_bio.c nfs_boot.c nfs_kq.c nfs_node.c \
CPPFLAGS+= -I${.CURDIR}/../../../net/lib/libnet/opt
CPPFLAGS+= -I${.CURDIR}/../../../net/lib/libnetinet/opt
CPPFLAGS+= -DNFS -DNFS_BOOT_DHCP -DNFS_BOOT_BOOTPARAM
CFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2008/11/27 14:14:30 pooka Exp $
# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:46 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../nfs
@ -9,7 +9,6 @@ SRCS= nfs_export.c nfs_serv.c nfs_srvcache.c nfs_srvsubs.c \
nfs_srvsocket.c nfs_syscalls.c
CPPFLAGS+= -DNFS
CFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2009/07/18 16:31:43 reinoud Exp $
# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:46 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../fs/nilfs
@ -7,7 +7,5 @@ LIB= rumpfs_nilfs
SRCS= nilfs_subr.c nilfs_vfsops.c nilfs_vnops.c
CFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2010/02/16 20:34:03 pooka Exp $
# $NetBSD: Makefile,v 1.6 2010/02/16 20:42:46 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../fs/ntfs
@ -8,7 +8,5 @@ LIB= rumpfs_ntfs
SRCS= ntfs_compr.c ntfs_conv.c ntfs_ihash.c ntfs_subr.c \
ntfs_vfsops.c ntfs_vnops.c
CFLAGS+=-Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2009/09/04 12:16:54 pooka Exp $
# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:46 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../fs/smbfs
@ -8,7 +8,5 @@ LIB= rumpfs_smbfs
SRCS= smbfs_io.c smbfs_kq.c smbfs_node.c smbfs_smb.c smbfs_subr.c \
smbfs_vfsops.c smbfs_vnops.c
CFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2008/11/17 09:03:51 pooka Exp $
# $NetBSD: Makefile,v 1.6 2010/02/16 20:42:46 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../fs/udf
@ -9,7 +9,5 @@ SRCS= udf_osta.c udf_vfsops.c udf_vnops.c udf_subr.c \
udf_allocation.c udf_readwrite.c udf_strat_bootstrap.c \
udf_strat_direct.c udf_strat_sequential.c udf_strat_rmw.c
CFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.rumpcrypto,v 1.1 2009/07/20 18:03:26 pooka Exp $
# $NetBSD: Makefile.rumpcrypto,v 1.2 2010/02/16 20:42:46 pooka Exp $
#
.include "${RUMPTOP}/Makefile.rump"
@ -35,7 +35,6 @@ SHLIB_MAJOR= 0
SHLIB_MINOR= 0
CPPFLAGS+= -I${RUMPTOP}/librump/rumpkern
CPPFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.rumpdev,v 1.4 2010/02/09 18:57:03 pooka Exp $
# $NetBSD: Makefile.rumpdev,v 1.5 2010/02/16 20:42:47 pooka Exp $
#
.include "${RUMPTOP}/Makefile.rump"
@ -18,7 +18,6 @@ SHLIB_MAJOR= 0
SHLIB_MINOR= 0
CPPFLAGS+= -I${RUMPTOP}/librump/rumpkern -I${RUMPTOP}/librump/rumpdev/opt
CPPFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.rumpkern,v 1.73 2010/01/31 15:12:42 pooka Exp $
# $NetBSD: Makefile.rumpkern,v 1.74 2010/02/16 20:42:47 pooka Exp $
#
.include "${RUMPTOP}/Makefile.rump"
@ -77,7 +77,6 @@ SHLIB_MINOR= 0
CPPFLAGS+= -I${RUMPTOP}/librump/rumpkern -I${RUMPTOP}/librump/rumpvfs
CPPFLAGS+= -I${RUMPTOP}/librump/rumpnet -I${RUMPTOP}/librump/rumpdev
CFLAGS+= -Wno-pointer-sign
AFLAGS+= -D_LOCORE -Wa,-fatal-warnings
#

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.rumpvfs,v 1.23 2009/12/17 12:49:22 pooka Exp $
# $NetBSD: Makefile.rumpvfs,v 1.24 2010/02/16 20:42:47 pooka Exp $
#
.include "${RUMPTOP}/Makefile.rump"
@ -62,7 +62,6 @@ SHLIB_MAJOR= 0
SHLIB_MINOR= 0
CPPFLAGS+= -I${RUMPTOP}/librump/rumpkern
CFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2009/12/12 17:10:19 pooka Exp $
# $NetBSD: Makefile,v 1.5 2010/02/16 20:42:47 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../kern
@ -8,7 +8,5 @@ LIB= rumpnet_local
SRCS= uipc_proto.c uipc_usrreq.c
SRCS+= component.c
CFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2010/02/05 22:01:38 pooka Exp $
# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:47 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../net80211
@ -12,7 +12,5 @@ SRCS= ieee80211.c ieee80211_acl.c ieee80211_amrr.c ieee80211_crypto.c \
ieee80211_output.c ieee80211_proto.c ieee80211_rssadapt.c \
ieee80211_xauth.c
CFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.4 2009/05/26 23:43:39 pooka Exp $
# $NetBSD: Makefile.inc,v 1.5 2010/02/16 20:42:47 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../netinet ${.CURDIR}/../../../../netinet6
@ -25,7 +25,6 @@ SRCS+= tcp_input.c tcp_output.c tcp_sack.c tcp_subr.c tcp_timer.c \
# UDP
SRCS+= udp_usrreq.c
CFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${.CURDIR}/opt -I${.CURDIR}/../libnet/opt
# TCP debugging