1
0
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:
Joakim Nohlgård 2018-06-14 22:45:35 +02:00 committed by Gaëtan Harter
parent 1a1c8f6c2a
commit 3c23c95b6f
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -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