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.
This commit is contained in:
bde 1995-12-16 01:57:25 +00:00
parent 662e3ea39b
commit a98acddd04
5 changed files with 20 additions and 13 deletions

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -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

View File

@ -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.