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 c5d6405..1ceb3e9 100644 (file)
@@ -110,6 +110,7 @@ LDFLAGS += $(clock_gettime_ldflags)
 
 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