switch prototype warnings to implicit-declaration warnings.
authortedu <tedu@openbsd.org>
Sun, 11 Jan 2015 19:25:13 +0000 (19:25 +0000)
committertedu <tedu@openbsd.org>
Sun, 11 Jan 2015 19:25:13 +0000 (19:25 +0000)
This should catch all the same bad cases, but be a little less aggravating
in circumstances where a prototype isn't necessary
ok deraadt

20 files changed:
sys/arch/alpha/conf/Makefile.alpha
sys/arch/amd64/conf/Makefile.amd64
sys/arch/armish/conf/Makefile.armish
sys/arch/armv7/conf/Makefile.armv7
sys/arch/aviion/conf/Makefile.aviion
sys/arch/hppa/conf/Makefile.hppa
sys/arch/hppa64/conf/Makefile.hppa64
sys/arch/i386/conf/Makefile.i386
sys/arch/landisk/conf/Makefile.landisk
sys/arch/loongson/conf/Makefile.loongson
sys/arch/luna88k/conf/Makefile.luna88k
sys/arch/macppc/conf/Makefile.macppc
sys/arch/octeon/conf/Makefile.octeon
sys/arch/sgi/conf/Makefile.sgi
sys/arch/socppc/conf/Makefile.socppc
sys/arch/solbourne/conf/Makefile.solbourne
sys/arch/sparc/conf/Makefile.sparc
sys/arch/sparc64/conf/Makefile.sparc64
sys/arch/vax/conf/Makefile.vax
sys/arch/zaurus/conf/Makefile.zaurus

index 74280e9..d0d43b1 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.alpha,v 1.85 2014/11/18 01:17:36 deraadt Exp $
+#      $OpenBSD: Makefile.alpha,v 1.86 2015/01/11 19:25:13 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 1324bf2..51bad80 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.amd64,v 1.63 2014/11/18 01:11:13 deraadt Exp $
+#      $OpenBSD: Makefile.amd64,v 1.64 2015/01/11 19:25:13 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index be590ef..fae8726 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.armish,v 1.49 2014/10/04 18:10:14 brad Exp $
+#      $OpenBSD: Makefile.armish,v 1.50 2015/01/11 19:25:13 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 52200bf..e908639 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.armv7,v 1.5 2014/10/04 18:10:14 brad Exp $
+#      $OpenBSD: Makefile.armv7,v 1.6 2015/01/11 19:25:13 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 8d6fbbf..e812e62 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.aviion,v 1.49 2014/11/18 01:17:36 deraadt Exp $
+#      $OpenBSD: Makefile.aviion,v 1.50 2015/01/11 19:25:13 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 184904a..4c135a7 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.hppa,v 1.78 2014/11/18 01:17:36 deraadt Exp $
+#      $OpenBSD: Makefile.hppa,v 1.79 2015/01/11 19:25:13 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 355e529..5ef95b8 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.hppa64,v 1.50 2014/11/18 01:17:36 deraadt Exp $
+#      $OpenBSD: Makefile.hppa64,v 1.51 2015/01/11 19:25:13 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 227c690..d35ad07 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.i386,v 1.90 2014/10/04 18:10:14 brad Exp $
+#      $OpenBSD: Makefile.i386,v 1.91 2015/01/11 19:25:13 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 10034b7..7f91400 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.landisk,v 1.51 2014/10/04 18:10:14 brad Exp $
+#      $OpenBSD: Makefile.landisk,v 1.52 2015/01/11 19:25:13 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index b5a146d..4ff41c0 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.loongson,v 1.43 2014/11/18 01:17:37 deraadt Exp $
+#      $OpenBSD: Makefile.loongson,v 1.44 2015/01/11 19:25:13 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -30,7 +30,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 54f95b0..e5550be 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.luna88k,v 1.57 2014/11/18 01:17:37 deraadt Exp $
+#      $OpenBSD: Makefile.luna88k,v 1.58 2015/01/11 19:25:13 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 73f90de..aebfb73 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.macppc,v 1.69 2014/10/04 18:10:14 brad Exp $
+#      $OpenBSD: Makefile.macppc,v 1.70 2015/01/11 19:25:13 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index b0b27bb..5605ba0 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.octeon,v 1.19 2014/11/18 01:17:37 deraadt Exp $
+#      $OpenBSD: Makefile.octeon,v 1.20 2015/01/11 19:25:14 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -30,7 +30,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 4c2d8dc..fcc4b14 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.sgi,v 1.67 2014/11/18 01:17:37 deraadt Exp $
+#      $OpenBSD: Makefile.sgi,v 1.68 2015/01/11 19:25:14 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -30,7 +30,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 7a5b6c8..5e5b793 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.socppc,v 1.40 2014/10/04 18:10:14 brad Exp $
+#      $OpenBSD: Makefile.socppc,v 1.41 2015/01/11 19:25:14 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 5f2ed6a..d981c95 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.solbourne,v 1.45 2014/11/18 01:17:37 deraadt Exp $
+#      $OpenBSD: Makefile.solbourne,v 1.46 2015/01/11 19:25:14 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 0b468f0..e649a3d 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.sparc,v 1.82 2014/11/18 01:17:37 deraadt Exp $
+#      $OpenBSD: Makefile.sparc,v 1.83 2015/01/11 19:25:14 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 7d68c03..94104fc 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.sparc64,v 1.70 2014/11/18 01:17:37 deraadt Exp $
+#      $OpenBSD: Makefile.sparc64,v 1.71 2015/01/11 19:25:14 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 1bf93b9..d03940e 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.vax,v 1.72 2014/10/04 18:10:14 brad Exp $
+#      $OpenBSD: Makefile.vax,v 1.73 2015/01/11 19:25:14 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047
 
index 147b396..fcdf04f 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.zaurus,v 1.52 2014/10/04 18:10:15 brad Exp $
+#      $OpenBSD: Makefile.zaurus,v 1.53 2015/01/11 19:25:14 tedu Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -23,7 +23,7 @@ _archdir?=    $S/arch/${_arch}
 
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
-CWARNFLAGS=    -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-main -Wno-uninitialized \
                -Wframe-larger-than=2047