mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cflags: add -Wformat=2 -Wformat-overflow -Wformat-truncation
This commit is contained in:
parent
1a1c8f6c2a
commit
3c23c95b6f
@ -58,6 +58,8 @@ CFLAGS += -fno-common
|
||||
|
||||
# Enable all default warnings and all extra warnings
|
||||
CFLAGS += -Wall -Wextra
|
||||
# Enable additional checks for printf/scanf format strings
|
||||
$(foreach flag,-Wformat=2 -Wformat-overflow -Wformat-truncation,$(eval $(call cflags_test_and_add,$(flag))))
|
||||
|
||||
# Warn if a user-supplied include directory does not exist.
|
||||
CFLAGS += -Wmissing-include-dirs
|
||||
|
Loading…
Reference in New Issue
Block a user