]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - Makefile.real
Merge branch 'refs/heads/t/simple_error_codes'
[paraslash.git] / Makefile.real
index 980192ecf5543bcde432575128ad0723e5ab82f8..9d10e184d74876cc76b655ac2a9a58bcb080a9ad 100644 (file)
@@ -125,6 +125,13 @@ ifeq ($(uname_s),Linux)
        LDFLAGS += -Wl,--gc-sections
 endif
 
+cc-option = $(shell \
+       $(CC) $(1) -Werror -c -x c /dev/null -o /dev/null > /dev/null 2>&1 \
+       && echo "$(1)" \
+)
+
+STRICT_CFLAGS += $(call cc-option, -Wformat-signedness)
+
 # To put more focus on warnings, be less verbose as default
 # Use 'make V=1' to see the full commands
 ifeq ("$(origin V)", "command line")