enable strict prototypes warning
This commit is contained in:
parent
7d75acc62a
commit
8f3281ed6a
2
Makefile
2
Makefile
@ -34,7 +34,7 @@ ifeq ($(CONFIG_UBSAN),true)
|
|||||||
SHARED_FLAGS += -fsanitize=undefined -fno-sanitize-recover=undefined
|
SHARED_FLAGS += -fsanitize=undefined -fno-sanitize-recover=undefined
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS := $(CFLAGS) -std=c17 $(SHARED_FLAGS) -Wmissing-prototypes
|
CFLAGS := $(CFLAGS) -std=c17 $(SHARED_FLAGS) -Wmissing-prototypes -Wstrict-prototypes
|
||||||
CXXFLAGS := $(CXXFLAGS) -std=c++17 -fsized-deallocation $(SHARED_FLAGS)
|
CXXFLAGS := $(CXXFLAGS) -std=c++17 -fsized-deallocation $(SHARED_FLAGS)
|
||||||
LDFLAGS := $(LDFLAGS) -Wl,-O1,--as-needed,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text
|
LDFLAGS := $(LDFLAGS) -Wl,-O1,--as-needed,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user