From 8e24073a9b2dcc5fd2bcd719dd679f029d4818cb Mon Sep 17 00:00:00 2001 From: wollman Date: Thu, 25 Nov 1993 01:38:01 +0000 Subject: Make the LINT kernel compile with -W -Wreturn-type -Wcomment -Werror, and add same (sans -Werror) to Makefile for future compilations. --- sys/conf/Makefile.i386 | 15 +++++++++++---- sys/conf/Makefile.powerpc | 15 +++++++++++---- 2 files changed, 22 insertions(+), 8 deletions(-) (limited to 'sys/conf') 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 -- cgit v1.1