rtld: Silence a false positive GCC 6.4.0 warning
The function reloc_non_plt has complicated variable lifetimes that GCC 6.4.0 (the version currently used by amd64-xtoolchain-gcc) misunderstands and produces an erroneous warning about. Silence it to allow the -Werror build to proceed. Reviewed by: emaste
This commit is contained in:
parent
bac111cc74
commit
66a87f8cfd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340843
@ -102,6 +102,10 @@ ${PROG_FULL}: ${VERSION_MAP}
|
|||||||
# GCC warns about redeclarations even though they have __exported
|
# GCC warns about redeclarations even though they have __exported
|
||||||
# and are therefore not identical to the ones from the system headers.
|
# and are therefore not identical to the ones from the system headers.
|
||||||
CFLAGS+= -Wno-redundant-decls
|
CFLAGS+= -Wno-redundant-decls
|
||||||
|
# GCC (6.4.0) doesn't grok the complicated lifetimes in reloc_non_plt():
|
||||||
|
.if ${MACHINE_CPUARCH} == "amd64"
|
||||||
|
CFLAGS.reloc.c+=-Wno-maybe-uninitialized
|
||||||
|
.endif
|
||||||
.if ${COMPILER_VERSION} < 40300
|
.if ${COMPILER_VERSION} < 40300
|
||||||
# Silence -Wshadow false positives in ancient GCC
|
# Silence -Wshadow false positives in ancient GCC
|
||||||
CFLAGS+= -Wno-shadow
|
CFLAGS+= -Wno-shadow
|
||||||
|
Loading…
Reference in New Issue
Block a user