Skip to content
Snippets Groups Projects
Unverified Commit 3c23c95b authored by Joakim Nohlgård's avatar Joakim Nohlgård Committed by Gaëtan Harter
Browse files

cflags: add -Wformat=2 -Wformat-overflow -Wformat-truncation

parent 1a1c8f6c
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment