summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1993-11-25 01:38:01 +0000
committerwollman <wollman@FreeBSD.org>1993-11-25 01:38:01 +0000
commit8e24073a9b2dcc5fd2bcd719dd679f029d4818cb (patch)
tree5f254571daeb319e5d462e9932f7aff4e6b7ee40 /sys/conf
parent5465ba6a252350e2c96e04cb61af6d77a3d8d66e (diff)
downloadFreeBSD-src-8e24073a9b2dcc5fd2bcd719dd679f029d4818cb.zip
FreeBSD-src-8e24073a9b2dcc5fd2bcd719dd679f029d4818cb.tar.gz
Make the LINT kernel compile with -W -Wreturn-type -Wcomment -Werror, and
add same (sans -Werror) to Makefile for future compilations.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/Makefile.i38615
-rw-r--r--sys/conf/Makefile.powerpc15
2 files changed, 22 insertions, 8 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index 4c4a6f9..dcb8110 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.14 1993/11/15 21:06:08 paul Exp $
+# $Id: Makefile.i386,v 1.15 1993/11/16 00:45:04 paul Exp $
#
# Makefile for FreeBSD
#
@@ -30,7 +30,14 @@ DBSYM= /usr/sbin/dbsym
S= ../..
I386= ../../i386
-CWARNFLAGS=
+CWARNFLAGS=-W -Wreturn-type -Wcomment
+#
+# The following flags are next up for working on:
+# -Wtraditional -Wredundant-decls -Wnested-externs
+#
+# When working on removing warnings from code, the `-Werror' flag should be
+# of material assistance.
+#
COPTFLAGS=-O
INCLUDES= -I. -I$S -I$S/sys
COPTS= ${INCLUDES} ${IDENT} -DKERNEL -Di386 -DNPX
@@ -151,8 +158,8 @@ ioconf.o: ioconf.c $S/sys/param.h machine/pte.h $S/sys/buf.h \
${I386}/isa/isa_device.h ${I386}/isa/isa.h ${I386}/isa/icu.h
${CC} -c ${CFLAGS} ioconf.c
-conf.o: ${I386}/i386/conf.c
- ${CC} -traditional -c ${CFLAGS} ${I386}/i386/conf.c
+conf.o: ${I386}/i386/conf.c $S/sys/conf.h
+ ${CC} -c ${CFLAGS} ${I386}/i386/conf.c
param.c: $S/conf/param.c
-rm -f param.c
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc
index 4c4a6f9..dcb8110 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.14 1993/11/15 21:06:08 paul Exp $
+# $Id: Makefile.i386,v 1.15 1993/11/16 00:45:04 paul Exp $
#
# Makefile for FreeBSD
#
@@ -30,7 +30,14 @@ DBSYM= /usr/sbin/dbsym
S= ../..
I386= ../../i386
-CWARNFLAGS=
+CWARNFLAGS=-W -Wreturn-type -Wcomment
+#
+# The following flags are next up for working on:
+# -Wtraditional -Wredundant-decls -Wnested-externs
+#
+# When working on removing warnings from code, the `-Werror' flag should be
+# of material assistance.
+#
COPTFLAGS=-O
INCLUDES= -I. -I$S -I$S/sys
COPTS= ${INCLUDES} ${IDENT} -DKERNEL -Di386 -DNPX
@@ -151,8 +158,8 @@ ioconf.o: ioconf.c $S/sys/param.h machine/pte.h $S/sys/buf.h \
${I386}/isa/isa_device.h ${I386}/isa/isa.h ${I386}/isa/icu.h
${CC} -c ${CFLAGS} ioconf.c
-conf.o: ${I386}/i386/conf.c
- ${CC} -traditional -c ${CFLAGS} ${I386}/i386/conf.c
+conf.o: ${I386}/i386/conf.c $S/sys/conf.h
+ ${CC} -c ${CFLAGS} ${I386}/i386/conf.c
param.c: $S/conf/param.c
-rm -f param.c
OpenPOWER on IntegriCloud