summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-16 01:57:25 +0000
committerbde <bde@FreeBSD.org>1995-12-16 01:57:25 +0000
commita98acddd049887630b40a28d26f92685a8f965c8 (patch)
tree0649b27779c53ed374c970a96615a2171bc919fe /sys
parent662e3ea39bcded2d3a3922028e6ae5d89f9abc25 (diff)
downloadFreeBSD-src-a98acddd049887630b40a28d26f92685a8f965c8.zip
FreeBSD-src-a98acddd049887630b40a28d26f92685a8f965c8.tar.gz
Added `-Wstrict-prototypes -Wmissing-prototypes' to CWARNFLAGS so that
prototypes don't go missing again. Also added -Winline so that some doubtful (non-)inlines get fixed. bsd.kmod.mk: Also added `-Wreturn-type -Wimplicit -Wnested-externs' to catch up with the kernel.
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/Makefile.i3867
-rw-r--r--sys/conf/Makefile.powerpc7
-rw-r--r--sys/conf/kmod.mk6
-rw-r--r--sys/i386/conf/Makefile.i3867
4 files changed, 16 insertions, 11 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index 4a59052..f948e9b 100644
--- a/sys/conf/Makefile.i386
+++ b/sys/conf/Makefile.i386
@@ -1,6 +1,6 @@
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.69 1995/11/01 15:03:02 peter Exp $
+# $Id: Makefile.i386,v 1.70 1995/11/19 19:49:43 davidg Exp $
#
# Makefile for FreeBSD
#
@@ -26,10 +26,11 @@ S= ../..
I386= ${S}/i386
CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
- -Wnested-externs
+ -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
+ -Winline
#
# The following flags are next up for working on:
-# -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
+# -Wall
#
# When working on removing warnings from code, the `-Werror' flag should be
# of material assistance.
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc
index 4a59052..f948e9b 100644
--- a/sys/conf/Makefile.powerpc
+++ b/sys/conf/Makefile.powerpc
@@ -1,6 +1,6 @@
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.69 1995/11/01 15:03:02 peter Exp $
+# $Id: Makefile.i386,v 1.70 1995/11/19 19:49:43 davidg Exp $
#
# Makefile for FreeBSD
#
@@ -26,10 +26,11 @@ S= ../..
I386= ${S}/i386
CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
- -Wnested-externs
+ -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
+ -Winline
#
# The following flags are next up for working on:
-# -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
+# -Wall
#
# When working on removing warnings from code, the `-Werror' flag should be
# of material assistance.
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index d3d53af..80004a3 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
-# $Id: bsd.kmod.mk,v 1.15 1995/10/15 16:56:56 phk Exp $
+# $Id: bsd.kmod.mk,v 1.16 1995/11/04 17:06:42 bde Exp $
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
@@ -13,7 +13,9 @@
# actually lives in /sys directly.
#
CFLAGS+=${COPTS} -DKERNEL -DACTUALLY_LKM_NOT_KERNEL -I${.CURDIR}/../../sys \
- -W -Wcomment -Wredundant-decls
+ -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
+ -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
+ -Winline
KMODGRP?= bin
KMODOWN?= bin
diff --git a/sys/i386/conf/Makefile.i386 b/sys/i386/conf/Makefile.i386
index 4a59052..f948e9b 100644
--- a/sys/i386/conf/Makefile.i386
+++ b/sys/i386/conf/Makefile.i386
@@ -1,6 +1,6 @@
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.69 1995/11/01 15:03:02 peter Exp $
+# $Id: Makefile.i386,v 1.70 1995/11/19 19:49:43 davidg Exp $
#
# Makefile for FreeBSD
#
@@ -26,10 +26,11 @@ S= ../..
I386= ${S}/i386
CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
- -Wnested-externs
+ -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
+ -Winline
#
# The following flags are next up for working on:
-# -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
+# -Wall
#
# When working on removing warnings from code, the `-Werror' flag should be
# of material assistance.
OpenPOWER on IntegriCloud