mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
adjust warning flags
This commit is contained in:
parent
99381b4386
commit
00de69e57e
1 changed files with 3 additions and 1 deletions
|
@ -47,7 +47,7 @@ endif
|
||||||
|
|
||||||
DEFCFLAGS = -Wall -Werror -O3
|
DEFCFLAGS = -Wall -Werror -O3
|
||||||
# Some more warnings we want as errors:
|
# Some more warnings we want as errors:
|
||||||
DEFCFLAGS += -Wcast-align -Wbad-function-cast -Wredundant-decls -Wmissing-prototypes -Wchar-subscripts -Wshadow -Wundef -Wwrite-strings -Wunused -Wuninitialized -Wpointer-arith -Winline -Wformat -Wformat-security -Winit-self -Wmissing-include-dirs -Wnested-externs -Wmissing-declarations -Wempty-body -Wignored-qualifiers -Woverride-init -Wshift-negative-value
|
DEFCFLAGS += -Wcast-align -Wbad-function-cast -Wredundant-decls -Wmissing-prototypes -Wchar-subscripts -Wshadow -Wundef -Wwrite-strings -Wunused -Wuninitialized -Wpointer-arith -Winline -Wformat -Wformat-security -Winit-self -Wmissing-include-dirs -Wnested-externs -Wmissing-declarations -Wempty-body -Wignored-qualifiers -Woverride-init
|
||||||
# Some more warnings we need first to eliminate, so temporarely tolerated:
|
# Some more warnings we need first to eliminate, so temporarely tolerated:
|
||||||
DEFCFLAGS += -Wno-error=cast-align
|
DEFCFLAGS += -Wno-error=cast-align
|
||||||
# TODO?:
|
# TODO?:
|
||||||
|
@ -55,6 +55,8 @@ DEFCFLAGS += -Wno-error=cast-align
|
||||||
#DEFCFLAGS += -Wno-error=unused-parameter -Wno-error=old-style-declaration -Wno-error=sign-compare -Wno-error=implicit-fallthrough -Wno-error=type-limits -Wno-error=missing-field-initializers -Wno-error=unused-but-set-parameter -Wno-error=switch-enum -Wno-error=old-style-definition
|
#DEFCFLAGS += -Wno-error=unused-parameter -Wno-error=old-style-declaration -Wno-error=sign-compare -Wno-error=implicit-fallthrough -Wno-error=type-limits -Wno-error=missing-field-initializers -Wno-error=unused-but-set-parameter -Wno-error=switch-enum -Wno-error=old-style-definition
|
||||||
# unknown to clang:
|
# unknown to clang:
|
||||||
# -Wclobbered -Wmissing-parameter-type -Wcast-function-type
|
# -Wclobbered -Wmissing-parameter-type -Wcast-function-type
|
||||||
|
# requires GCC 6:
|
||||||
|
# -Wshift-negative-value
|
||||||
|
|
||||||
ifeq ($(platform),Darwin)
|
ifeq ($(platform),Darwin)
|
||||||
# their readline has strict-prototype issues
|
# their readline has strict-prototype issues
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue