ref: 516e4578ea144e297e69ac7972e639b67a17b387
parent: 9829be104549bcdef63984676bf9c432bbb777fa
author: Antonio Niño Díaz <[email protected]>
date: Sat Mar 31 21:38:07 EDT 2018
Enable more optional warnings -Wformat-truncation is set to 1 instead of 2 because in some cases the return value of snprintf is used to warn about truncations but GCC still creates a warning for it, preventing the compilation from continuing. Signed-off-by: Antonio Niño Díaz <[email protected]>
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,9 @@
VERSION_STRING := `git describe --tags --dirty --always 2>/dev/null`
-WARNFLAGS := -Werror -Wall -Wextra -Wpedantic -Wno-sign-compare
+WARNFLAGS := -Werror -Wall -Wextra -Wpedantic -Wno-sign-compare -Wchkp \
+ -Wformat=2 -Wformat-overflow=2 -Wformat-truncation=1 \
+ -Wformat-y2k
# Overridable CFLAGS
CFLAGS := -g