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
@ -102,6 +102,10 @@ ${PROG_FULL}: ${VERSION_MAP}
|
||||
# GCC warns about redeclarations even though they have __exported
|
||||
# and are therefore not identical to the ones from the system headers.
|
||||
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
|
||||
# Silence -Wshadow false positives in ancient GCC
|
||||
CFLAGS+= -Wno-shadow
|
||||
|
Loading…
x
Reference in New Issue
Block a user