Makefile: turn on warnings about missing prototypes
Catches missing, dead code and also places where function should be static.
This commit is contained in:
parent
46ac8a5550
commit
6398d3a652
4
Makefile
4
Makefile
|
|
@ -30,7 +30,9 @@ CC = gcc
|
||||||
HOSTCC = gcc
|
HOSTCC = gcc
|
||||||
DEFINES += -D_GNU_SOURCE
|
DEFINES += -D_GNU_SOURCE
|
||||||
CCOPTS = -O2
|
CCOPTS = -O2
|
||||||
WFLAGS = -Wall -Wstrict-prototypes -Werror
|
WFLAGS := -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes
|
||||||
|
WFLAGS += -Wmissing-declarations -Wold-style-definition
|
||||||
|
|
||||||
CFLAGS = $(WFLAGS) $(CCOPTS) -I../include $(DEFINES)
|
CFLAGS = $(WFLAGS) $(CCOPTS) -I../include $(DEFINES)
|
||||||
YACCFLAGS = -d -t -v
|
YACCFLAGS = -d -t -v
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue