mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
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
This commit is contained in:
parent
7fbee490e5
commit
ebf78c721d
1 changed files with 5 additions and 3 deletions
|
@ -282,7 +282,7 @@ ifneq ($(RELEASE)$(DEBUGANYWAY),10)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CSTD:=-std=gnu99
|
CSTD:=-std=gnu99
|
||||||
CONLYFLAGS=$(CSTD) -Wimplicit -Werror-implicit-function-declaration
|
CONLYFLAGS=$(CSTD)
|
||||||
CXXSTD:=-std=gnu++03
|
CXXSTD:=-std=gnu++03
|
||||||
CXXONLYFLAGS=$(CXXSTD) -fno-exceptions -fno-rtti
|
CXXONLYFLAGS=$(CXXSTD) -fno-exceptions -fno-rtti
|
||||||
ASFORMAT=elf$(BITS)
|
ASFORMAT=elf$(BITS)
|
||||||
|
@ -546,6 +546,8 @@ CWARNS = -W -Wall \
|
||||||
#-Wcast-align \
|
#-Wcast-align \
|
||||||
#-Waddress
|
#-Waddress
|
||||||
|
|
||||||
|
CONLYWARNS = -Wimplicit -Werror-implicit-function-declaration
|
||||||
|
|
||||||
ifneq (0,$(CLANG))
|
ifneq (0,$(CLANG))
|
||||||
CWARNS+= -Wno-unused-value -Wno-parentheses -Wno-unknown-warning-option
|
CWARNS+= -Wno-unused-value -Wno-parentheses -Wno-unknown-warning-option
|
||||||
else
|
else
|
||||||
|
@ -1017,9 +1019,9 @@ ifneq (,$(VC_REV)$(VC_REV_CUSTOM))
|
||||||
REVFLAG += -DREV="\"r$(VC_REV)$(VC_REV_CUSTOM)\""
|
REVFLAG += -DREV="\"r$(VC_REV)$(VC_REV_CUSTOM)\""
|
||||||
endif
|
endif
|
||||||
|
|
||||||
COMPILER_C=$(CC) $(CONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(COMPILERFLAGS)
|
COMPILER_C=$(CC) $(CONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(CONLYWARNS) $(COMPILERFLAGS)
|
||||||
COMPILER_CXX=$(CXX) $(CXXONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(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)
|
COMPILER_OBJCXX=$(COBJCXX) $(CXXONLYFLAGS) $(COMMONFLAGS) $(CWARNS) $(COMPILERFLAGS)
|
||||||
LINKER=$(L_CXX) $(CXXONLYFLAGS) $(L_CXXONLYFLAGS) $(COMMONFLAGS) $(LINKERFLAGS)
|
LINKER=$(L_CXX) $(CXXONLYFLAGS) $(L_CXXONLYFLAGS) $(COMMONFLAGS) $(LINKERFLAGS)
|
||||||
ifneq ($(CPLUSPLUS),0)
|
ifneq ($(CPLUSPLUS),0)
|
||||||
|
|
Loading…
Reference in a new issue