Add -Wpointer-arith warning since `void *' arithmetic is not ANSI C.
This commit is contained in:
parent
0d32a9a78b
commit
fc5f9ee81d
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.alpha,v 1.45 1998/10/15 18:37:13 drochner Exp $
|
||||
# $NetBSD: Makefile.alpha,v 1.46 1999/01/08 19:26:12 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -46,7 +46,7 @@ CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
|||
-Dalpha
|
||||
COPTS?= -O2
|
||||
CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wno-format
|
||||
-Wno-format -Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.amiga,v 1.77 1998/10/15 18:37:13 drochner Exp $
|
||||
# $NetBSD: Makefile.amiga,v 1.78 1999/01/08 19:26:12 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -46,7 +46,8 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-Dmc68020 -Damiga -DFPCOPROC
|
||||
CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||
CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.arm32,v 1.41 1999/01/01 10:28:16 mark Exp $
|
||||
# $NetBSD: Makefile.arm32,v 1.42 1999/01/08 19:26:12 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -46,7 +46,7 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-Darm32 -Wcomment
|
||||
CWARNFLAGS?= -Werror -Wall
|
||||
CWARNFLAGS?= -Werror -Wall -Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.atari,v 1.48 1998/10/15 18:37:14 drochner Exp $
|
||||
# $NetBSD: Makefile.atari,v 1.49 1999/01/08 19:26:12 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -46,7 +46,8 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-Dmc68020 -Datari
|
||||
CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||
CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.bebox,v 1.9 1998/10/15 18:37:14 drochner Exp $
|
||||
# $NetBSD: Makefile.bebox,v 1.10 1999/01/08 19:26:12 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -47,7 +47,7 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-Dbebox
|
||||
CWARNFLAGS?= -Werror -Wreturn-type
|
||||
CWARNFLAGS?= -Werror -Wreturn-type -Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.hp300,v 1.65 1998/10/15 18:37:14 drochner Exp $
|
||||
# $NetBSD: Makefile.hp300,v 1.66 1999/01/08 19:26:12 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -46,7 +46,8 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-Dmc68020 -Dhp300
|
||||
CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||
CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.i386,v 1.94 1998/10/15 18:37:14 drochner Exp $
|
||||
# $NetBSD: Makefile.i386,v 1.95 1999/01/08 19:26:13 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -46,7 +46,8 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-Di386
|
||||
CWARNFLAGS?= -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes
|
||||
CWARNFLAGS?= -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes \
|
||||
-Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.mac68k,v 1.65 1998/10/15 18:37:15 drochner Exp $
|
||||
# $NetBSD: Makefile.mac68k,v 1.66 1999/01/08 19:26:13 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -46,7 +46,8 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-Dmc68020 -Dmac68k
|
||||
CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||
CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.macppc,v 1.4 1998/10/15 18:37:15 drochner Exp $
|
||||
# $NetBSD: Makefile.macppc,v 1.5 1999/01/08 19:26:13 augustss Exp $
|
||||
#
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -48,7 +48,7 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-Dmacppc
|
||||
CWARNFLAGS?= -Werror -Wreturn-type
|
||||
CWARNFLAGS?= -Werror -Wreturn-type -Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.mvme68k,v 1.36 1998/10/15 18:37:15 drochner Exp $
|
||||
# $NetBSD: Makefile.mvme68k,v 1.37 1999/01/08 19:26:13 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -48,7 +48,7 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -nostdinc -I. -I$S/arch -I$S
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-Dmc68020 -Dmvme68k
|
||||
CWARNFLAGS?= -Werror
|
||||
CWARNFLAGS?= -Werror -Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.newsmips,v 1.9 1998/10/15 18:37:15 drochner Exp $
|
||||
# $NetBSD: Makefile.newsmips,v 1.10 1999/01/08 19:26:13 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -48,7 +48,7 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-Dnewsmips ${GP}
|
||||
CWARNFLAGS?= -Werror -Wall -Wno-parentheses
|
||||
CWARNFLAGS?= -Werror -Wall -Wno-parentheses -Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.next68k,v 1.5 1998/11/16 04:37:56 dbj Exp $
|
||||
# $NetBSD: Makefile.next68k,v 1.6 1999/01/08 19:26:14 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -54,7 +54,8 @@ CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
|||
-undef -Dmc68020 -Dnext68k -D__NetBSD__
|
||||
# -U__NeXT__ -UNeXT -U__NeXT -U_NEXT_SOURCE -U__MACH__ \
|
||||
# -DCROSS_COMPILE_NEXTSTEP
|
||||
CWARNFLAGS= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-format
|
||||
CWARNFLAGS= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-format \
|
||||
-Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.ofppc,v 1.16 1998/10/15 18:37:15 drochner Exp $
|
||||
# $NetBSD: Makefile.ofppc,v 1.17 1999/01/08 19:26:14 augustss Exp $
|
||||
#
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -49,7 +49,7 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-Dpowerpc
|
||||
CWARNFLAGS?= -Werror -Wreturn-type
|
||||
CWARNFLAGS?= -Werror -Wreturn-type -Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.pc532,v 1.52 1998/10/15 18:37:16 drochner Exp $
|
||||
# $NetBSD: Makefile.pc532,v 1.53 1999/01/08 19:26:14 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -46,7 +46,7 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL
|
||||
CWARNFLAGS?= -Wall -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wno-format -Werror
|
||||
-Wno-format -Werror -Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.pica,v 1.23 1998/10/15 18:37:16 drochner Exp $
|
||||
# $NetBSD: Makefile.pica,v 1.24 1999/01/08 19:26:14 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -48,7 +48,7 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-Dpica -D__NetBSD__ ${GP}
|
||||
CWARNFLAGS?= -Wall -Wmissing-prototypes -Wstrict-prototypes
|
||||
CWARNFLAGS?= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.pmax,v 1.64 1998/11/27 01:01:40 simonb Exp $
|
||||
# $NetBSD: Makefile.pmax,v 1.65 1999/01/08 19:26:14 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -49,7 +49,8 @@ INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
|||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-D__pmax__ -Dpmax ${GP}
|
||||
# -Wno-uninitialized avoids bogus warnings in cpu_reboot()
|
||||
CWARNFLAGS?= -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized
|
||||
CWARNFLAGS?= -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized \
|
||||
-Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.sparc,v 1.54 1998/10/15 18:37:16 drochner Exp $
|
||||
# $NetBSD: Makefile.sparc,v 1.55 1999/01/08 19:26:15 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -45,7 +45,8 @@ SPARC= $S/arch/sparc
|
|||
HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
||||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL
|
||||
CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||
CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.sparc64,v 1.6 1998/10/15 18:37:16 drochner Exp $
|
||||
# $NetBSD: Makefile.sparc64,v 1.7 1999/01/08 19:26:15 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -54,7 +54,7 @@ SPARC64= $S/arch/sparc64
|
|||
|
||||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL ${SVR4}
|
||||
CWARNFLAGS= -Wimplicit -Wunused -Wswitch -Wcomment -Wtrigraphs -Wchar-subscripts -Wuninitialized -Wparentheses -Wstrict-prototypes -Wmissing-prototypes
|
||||
CWARNFLAGS= -Wimplicit -Wunused -Wswitch -Wcomment -Wtrigraphs -Wchar-subscripts -Wuninitialized -Wparentheses -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
|
||||
#CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||
CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -Wa,-Av9a -mno-fpu
|
||||
AFLAGS= -x assembler-with-cpp -Wa,-Av9a -traditional-cpp -D_LOCORE
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.sun3,v 1.72 1998/12/13 19:19:38 kleink Exp $
|
||||
# $NetBSD: Makefile.sun3,v 1.73 1999/01/08 19:26:15 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -60,7 +60,8 @@ XDEFS= -undef -D__NetBSD__ -Dm68k -Dmc68000
|
|||
DEFINES= -D_KERNEL -Dmc68020 -Dsun3
|
||||
CPPFLAGS= ${INCLUDES} ${XDEFS} ${DEFINES} ${IDENT} ${PARAM}
|
||||
# Make it easy to override this on the command line...
|
||||
CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||
CWARNFLAGS?= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.vax,v 1.45 1998/10/15 18:37:17 drochner Exp $
|
||||
# $NetBSD: Makefile.vax,v 1.46 1999/01/08 19:26:15 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -46,7 +46,8 @@ HAVE_GCC28!= ${CC} --version | egrep "^(2\.8|egcs)" ; echo
|
|||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
|
||||
-D_VAX_INLINE_
|
||||
CWARNFLAGS?= -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes
|
||||
CWARNFLAGS?= -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes \
|
||||
-Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.x68k,v 1.29 1998/10/15 18:37:17 drochner Exp $
|
||||
# $NetBSD: Makefile.x68k,v 1.30 1999/01/08 19:26:15 augustss Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -51,7 +51,8 @@ CMACHFLAGS= -m68030
|
|||
.else
|
||||
CMACHFLAGS= -m68060
|
||||
.endif
|
||||
CWARNFLAGS?= -Werror -Wstrict-prototypes -Wmissing-prototypes
|
||||
CWARNFLAGS?= -Werror -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wpointer-arith
|
||||
.if (${HAVE_GCC28} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
|
|
Loading…
Reference in New Issue