bsd.sys.mk: Silence a few GCC warnings for C++
These warnings were already marked with -Wno-error=, but they trigger so many false positives in libc++ headers to be utterly useless for C++ code, so disable them entirely for C++. Reviewed by: imp, dim Differential Revision: https://reviews.freebsd.org/D54867
This commit is contained in:
@@ -193,6 +193,11 @@ CWARNFLAGS+= -Wno-error=address \
|
|||||||
-Wno-error=uninitialized \
|
-Wno-error=uninitialized \
|
||||||
-Wno-error=unused-function \
|
-Wno-error=unused-function \
|
||||||
-Wno-error=unused-value
|
-Wno-error=unused-value
|
||||||
|
|
||||||
|
# These warnings are raised by headers in libc++ so are disabled
|
||||||
|
# globally for all C++
|
||||||
|
CXXWARNFLAGS+= -Wno-attributes \
|
||||||
|
-Wno-deprecated-declarations
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# GCC 6.1.0
|
# GCC 6.1.0
|
||||||
@@ -246,6 +251,7 @@ CWARNFLAGS+= -Wno-error=overflow
|
|||||||
# globally for all C++
|
# globally for all C++
|
||||||
CXXWARNFLAGS+= -Wno-literal-suffix \
|
CXXWARNFLAGS+= -Wno-literal-suffix \
|
||||||
-Wno-c++20-extensions \
|
-Wno-c++20-extensions \
|
||||||
|
-Wno-attributes \
|
||||||
-Wno-error=unknown-pragmas
|
-Wno-error=unknown-pragmas
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user