X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile.real;h=9d10e184d74876cc76b655ac2a9a58bcb080a9ad;hb=21c6e0b09b42e61e72b741bd726856ab0bcd1d64;hp=980192ecf5543bcde432575128ad0723e5ab82f8;hpb=a775408e5d2e3b21dff741b89ff5330b397b5138;p=paraslash.git diff --git a/Makefile.real b/Makefile.real index 980192ec..9d10e184 100644 --- a/Makefile.real +++ b/Makefile.real @@ -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")