]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
build: Add -Wunused-macros to CPPFLAGS on Linux.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 1 Apr 2015 02:50:27 +0000 (02:50 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 31 May 2015 09:30:26 +0000 (11:30 +0200)
We already specify -Wunused which combines all -Wunused options but
does not activate the -Wunused-macros cpp warning.

Makefile.real

index c5d6405846d1afe50e5e6179058467c3f65fc9bd..1ceb3e96ad71802a64a18e65e729b2309e8694c8 100644 (file)
@@ -110,6 +110,7 @@ LDFLAGS += $(clock_gettime_ldflags)
 
 ifeq ($(uname_s),Linux)
        # these cause warnings on *BSD
 
 ifeq ($(uname_s),Linux)
        # these cause warnings on *BSD
+       CPPFLAGS += -Wunused-macros
        STRICT_CFLAGS += -fdata-sections -ffunction-sections
        STRICT_CFLAGS += -Wstrict-prototypes
        STRICT_CFLAGS += -Wshadow
        STRICT_CFLAGS += -fdata-sections -ffunction-sections
        STRICT_CFLAGS += -Wstrict-prototypes
        STRICT_CFLAGS += -Wshadow