X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile.real;h=8ededf6aff8300608a5939429779ecd7b1753626;hb=eab41e87;hp=980192ecf5543bcde432575128ad0723e5ab82f8;hpb=a775408e5d2e3b21dff741b89ff5330b397b5138;p=paraslash.git diff --git a/Makefile.real b/Makefile.real index 980192ec..8ededf6a 100644 --- a/Makefile.real +++ b/Makefile.real @@ -18,7 +18,7 @@ uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS") uname_rs := $(shell uname -rs) cc_version := $(shell $(CC) --version | head -n 1) GIT_VERSION := $(shell ./GIT-VERSION-GEN git-version.h) -COPYRIGHT_YEAR := 2016 +COPYRIGHT_YEAR := 2017 ifeq ("$(origin O)", "command line") build_dir := $(O) @@ -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")