Tighten gcc warning options
Suppress only unused parameters, not all unused stuff.
This commit is contained in:
parent
5a2e64ef1a
commit
b3c5ba2f75
1 changed files with 3 additions and 2 deletions
5
Make.mk
5
Make.mk
|
@ -154,8 +154,9 @@ endif
|
||||||
ifeq ($(have_gcc),yes)
|
ifeq ($(have_gcc),yes)
|
||||||
CFLAGS += -fno-builtin-carg # conflicts with our carg()
|
CFLAGS += -fno-builtin-carg # conflicts with our carg()
|
||||||
CFLAGS += -fno-common
|
CFLAGS += -fno-common
|
||||||
CFLAGS += -Wall -W -Wno-unused -Wpointer-arith -Wstrict-prototypes \
|
CFLAGS += -Wall -W -Wno-unused-parameter -Wpointer-arith \
|
||||||
-Wmissing-prototypes -Wnested-externs -Wredundant-decls
|
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs \
|
||||||
|
-Wredundant-decls
|
||||||
endif
|
endif
|
||||||
LDLIBS += -lm
|
LDLIBS += -lm
|
||||||
$(client): LDLIBS += $(termlibs)
|
$(client): LDLIBS += $(termlibs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue