From 5ebecc04182c3b595f8cd11fdf3e50dd6a9d8a11 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 4 Jun 2012 10:29:42 +0200 Subject: [PATCH] Makefile: Warn for unused macros only on Linux. We need these macros at several places, but each of them causes a compilier warning on FreeBSD and NetBSD where these macros are not used at all. This patch moves the -Wunused-macros option to the Linux-only section. --- Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 5760cad4..30a5c015 100644 --- a/Makefile.in +++ b/Makefile.in @@ -45,6 +45,8 @@ ifeq ($(uname_s),Linux) LDFLAGS += -Wl,--gc-sections CPPFLAGS += -Wstrict-prototypes CPPFLAGS += -Wshadow + # causes warnings on *BSD for the feature test macros + CPPFLAGS += -Wunused-macros endif CPPFLAGS += -Os CPPFLAGS += -Wuninitialized @@ -56,7 +58,6 @@ CPPFLAGS += -DCODENAME='"$(codename)"' CPPFLAGS += -DCC_VERSION='"$(cc_version)"' CPPFLAGS += -Werror-implicit-function-declaration CPPFLAGS += -Wmissing-noreturn -CPPFLAGS += -Wunused-macros CPPFLAGS += -Wbad-function-cast CPPFLAGS += -fno-strict-aliasing CPPFLAGS += -DMAIN_INPUT_FILE_IS_$(*F) -- 2.39.2