mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
Remove arm clang flags
This commit is contained in:
parent
72e7f2e98c
commit
77a834954e
1 changed files with 1 additions and 15 deletions
|
@ -55,7 +55,7 @@ DEFCFLAGS += -Wstrict-prototypes -Wno-error=strict-prototypes
|
||||||
#DEFCFLAGS += -Wredundant-decls -Wno-error=redundant-decls
|
#DEFCFLAGS += -Wredundant-decls -Wno-error=redundant-decls
|
||||||
#DEFCFLAGS += -Wcast-align -Wno-error=cast-align
|
#DEFCFLAGS += -Wcast-align -Wno-error=cast-align
|
||||||
|
|
||||||
# Next ones are activated only if GCCEXTRA=1 or CLANGEXTRA=1
|
# Next ones are activated only if GCCEXTRA=1
|
||||||
EXTRACFLAGS =
|
EXTRACFLAGS =
|
||||||
EXTRACFLAGS += -Wunused-parameter -Wno-error=unused-parameter
|
EXTRACFLAGS += -Wunused-parameter -Wno-error=unused-parameter
|
||||||
EXTRACFLAGS += -Wswitch-enum -Wno-error=switch-enum
|
EXTRACFLAGS += -Wswitch-enum -Wno-error=switch-enum
|
||||||
|
@ -84,20 +84,6 @@ GCCEXTRACFLAGS += -Wcast-align -Wno-error=cast-align
|
||||||
ifeq ($(GCCEXTRA),1)
|
ifeq ($(GCCEXTRA),1)
|
||||||
DEFCFLAGS += $(GCCEXTRACFLAGS) $(EXTRACFLAGS)
|
DEFCFLAGS += $(GCCEXTRACFLAGS) $(EXTRACFLAGS)
|
||||||
endif
|
endif
|
||||||
# unknown to gcc or old clang:
|
|
||||||
# First we activate Wextra then we explicitly list those we know about
|
|
||||||
# Those without -Wno-error are supposed to be completely solved
|
|
||||||
CLANGEXTRACFLAGS = -Wextra
|
|
||||||
CLANGEXTRACFLAGS += -Wtautological-type-limit-compare
|
|
||||||
CLANGEXTRACFLAGS += -Wnull-pointer-arithmetic
|
|
||||||
CLANGEXTRACFLAGS += -Woverride-init
|
|
||||||
CLANGEXTRACFLAGS += -Wshift-negative-value
|
|
||||||
CLANGEXTRACFLAGS += -Wimplicit-fallthrough
|
|
||||||
# tolerate warnings when using clang
|
|
||||||
CLANGEXTRACFLAGS += -Wno-unused-command-line-argument -Wno-error=unknown-attributes -Wno-error=undef -Wno-error=keyword-macro -Wno-error=incompatible-library-redeclaration -Wno-error=macro-redefined -Wno-error=gnu-include-next
|
|
||||||
ifeq ($(CLANGEXTRA),1)
|
|
||||||
DEFCFLAGS += $(CLANGEXTRACFLAGS) $(EXTRACFLAGS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
CFLAGS ?= $(DEFCFLAGS)
|
CFLAGS ?= $(DEFCFLAGS)
|
||||||
CFLAGS += $(ARMCFLAGS) -c $(INCLUDE) -std=c99 $(APP_CFLAGS)
|
CFLAGS += $(ARMCFLAGS) -c $(INCLUDE) -std=c99 $(APP_CFLAGS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue