--- old/make/bsd/makefiles/gcc.make 2014-02-25 12:32:46.844126000 +0100 +++ new/make/bsd/makefiles/gcc.make 2014-02-25 12:32:46.705090000 +0100 @@ -260,14 +260,18 @@ WARNINGS_ARE_ERRORS += -Wno-empty-body endif -WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wformat=2 -Wno-error=format-nonliteral +WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wformat=2 ifeq ($(USE_CLANG),) # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit # conversions which might affect the values. Only enable it in earlier versions. ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0" - WARNINGS_FLAGS += -Wconversion + WARNING_FLAGS += -Wconversion -Wno-format-nonliteral + else + WARNING_FLAGS += -Wno-error=format-nonliteral endif +else + WARNING_FLAGS += -Wno-error=format-nonliteral endif CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(WARNING_FLAGS)