X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile.real;h=978bebfa9dc82e62a4eff2828d40a710915b1d4b;hb=cdba3d86b4c41440ec7f26e867c18a802b0b26b7;hp=2b245dae188d6188c61f2b59aae0d2eefb20e841;hpb=48feadc148bd5b7e08fda31e7a3e69c19121b4f9;p=paraslash.git diff --git a/Makefile.real b/Makefile.real index 2b245dae..978bebfa 100644 --- a/Makefile.real +++ b/Makefile.real @@ -97,24 +97,24 @@ CFLAGS += -Wmissing-noreturn CFLAGS += -Wbad-function-cast CFLAGS += -fno-strict-aliasing -ifeq ($(uname_s),Linux) - CFLAGS += -fdata-sections -ffunction-sections - CFLAGS += -Wstrict-prototypes - CFLAGS += -Wshadow - # causes warnings on *BSD for the feature test macros - CFLAGS += -Wunused-macros - LDFLAGS += -Wl,--gc-sections -endif - STRICT_CFLAGS = $(CFLAGS) -STRICT_CFLAGS += -g -Wunused -Wundef -W +STRICT_CFLAGS += -g -Wundef -W STRICT_CFLAGS += -Wredundant-decls -STRICT_CFLAGS += -Wall -Wno-sign-compare -Wno-unknown-pragmas -STRICT_CFLAGS += -Wformat-security +STRICT_CFLAGS += -Wno-sign-compare -Wno-unknown-pragmas +STRICT_CFLAGS += -Wformat -Wformat-security STRICT_CFLAGS += -Wmissing-format-attribute LDFLAGS += $(clock_gettime_ldflags) +ifeq ($(uname_s),Linux) + # these cause warnings on *BSD + STRICT_CFLAGS += -fdata-sections -ffunction-sections + STRICT_CFLAGS += -Wstrict-prototypes + STRICT_CFLAGS += -Wshadow + STRICT_CFLAGS += -Wunused -Wall + LDFLAGS += -Wl,--gc-sections +endif + # 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")