mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 06:07:31 -04:00
Turned on -Wformat -fformat-extensions. -fformat-extensions requires a
-current version of gcc. Without it, -Wformat would complain about all the nonstandard %[Dbrz] formats in the kernel.
This commit is contained in:
parent
c9db555954
commit
405b59bcb5
2 changed files with 8 additions and 6 deletions
|
|
@ -1,14 +1,15 @@
|
|||
# $Id: bsd.kern.mk,v 1.8 1997/10/21 10:39:27 bde Exp $
|
||||
# $Id: bsd.kern.mk,v 1.9 1998/05/01 18:13:37 bde Exp $
|
||||
|
||||
#
|
||||
# Warning flags for compiling the kernel and components of the kernel.
|
||||
#
|
||||
CWARNFLAGS?= -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
|
||||
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wpointer-arith -Winline -Wuninitialized -ansi
|
||||
-Wpointer-arith -Winline -Wuninitialized -Wformat \
|
||||
-fformat-extensions -ansi
|
||||
#
|
||||
# The following flags are next up for working on:
|
||||
# -W -Wunused -Wcast-qual -Wformat -Wall
|
||||
# -W -Wunused -Wcast-qual -Wall
|
||||
#
|
||||
# When working on removing warnings from code, the `-Werror' flag should be
|
||||
# of material assistance.
|
||||
|
|
|
|||
|
|
@ -1,14 +1,15 @@
|
|||
# $Id: bsd.kern.mk,v 1.8 1997/10/21 10:39:27 bde Exp $
|
||||
# $Id: bsd.kern.mk,v 1.9 1998/05/01 18:13:37 bde Exp $
|
||||
|
||||
#
|
||||
# Warning flags for compiling the kernel and components of the kernel.
|
||||
#
|
||||
CWARNFLAGS?= -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
|
||||
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wpointer-arith -Winline -Wuninitialized -ansi
|
||||
-Wpointer-arith -Winline -Wuninitialized -Wformat \
|
||||
-fformat-extensions -ansi
|
||||
#
|
||||
# The following flags are next up for working on:
|
||||
# -W -Wunused -Wcast-qual -Wformat -Wall
|
||||
# -W -Wunused -Wcast-qual -Wall
|
||||
#
|
||||
# When working on removing warnings from code, the `-Werror' flag should be
|
||||
# of material assistance.
|
||||
|
|
|
|||
Loading…
Reference in a new issue