From ebf78c721d2ca29ed5af9f41a735bcb0ec50a5eb Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 22 Mar 2017 15:45:56 +0000 Subject: [PATCH] Makefile: Move "-Wimplicit -Werror-implicit-function-declaration" from CONLYFLAGS to a new CONLYWARNS. git-svn-id: https://svn.eduke32.com/eduke32@6085 1a8010ca-5511-0410-912e-c29ae57300e0 --- Common.mak | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Common.mak b/Common.mak index 1ae6adfad..6dba8a208 100644 --- a/Common.mak +++ b/Common.mak @@ -282,7 +282,7 @@ ifneq ($(RELEASE)$(DEBUGANYWAY),10) endif CSTD:=-std=gnu99 -CONLYFLAGS=$(CSTD) -Wimplicit -Werror-implicit-function-declaration +CONLYFLAGS=$(CSTD) CXXSTD:=-std=gnu++03 CXXONLYFLAGS=$(CXXSTD) -fno-exceptions -fno-rtti ASFORMAT=elf$(BITS) @@ -546,6 +546,8 @@ CWARNS = -W -Wall \ #-Wcast-align \ #-Waddress +CONLYWARNS = -Wimplicit -Werror-implicit-function-declaration + ifneq (0,$(CLANG)) CWARNS+= -Wno-unused-value -Wno-parentheses -Wno-unknown-warning-option else @@ -1017,9 +1019,9 @@ ifneq (,$(VC_REV)$(VC_REV_CUSTOM)) REVFLAG += -DREV="\"r$(VC_REV)$(VC_REV_CUSTOM)\"" endif -COMPILER_C=$(CC) $(CONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(COMPILERFLAGS) +COMPILER_C=$(CC) $(CONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(CONLYWARNS) $(COMPILERFLAGS) COMPILER_CXX=$(CXX) $(CXXONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(COMPILERFLAGS) -COMPILER_OBJC=$(COBJC) $(CONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(COMPILERFLAGS) +COMPILER_OBJC=$(COBJC) $(CONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(CONLYWARNS) $(COMPILERFLAGS) COMPILER_OBJCXX=$(COBJCXX) $(CXXONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(COMPILERFLAGS) LINKER=$(L_CXX) $(CXXONLYFLAGS) $(L_CXXONLYFLAGS) $(COMMONFLAGS) $(LINKERFLAGS) ifneq ($(CPLUSPLUS),0)