X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=Makefile.real;h=464cd68ee2a1af044d0b09e36f4681db2a836aae;hp=ce4881d29c90c8626e44d384dab14c81e15b11b8;hb=6be2a7de19d8fe01f67207d8412fba7b468c6b11;hpb=f6a845d497ed6883e8318acc8a17d2ed07b85a51 diff --git a/Makefile.real b/Makefile.real index ce4881d2..464cd68e 100644 --- a/Makefile.real +++ b/Makefile.real @@ -128,6 +128,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")