mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
avro-c++: relax -Werror=unused-but-set-variable for GCC 16
GCC 16 reports a set-but-unused variable in the JSON parser, and avro builds with -Werror: lang/c++/impl/json/JsonIO.cc:296:30: error: variable 'n' set but not used [-Werror=unused-but-set-variable=] Extend the existing toolchain-gcc -Wno-error workaround to cover it. Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -36,6 +36,6 @@ do_configure:prepend() {
|
||||
# the workaround flags aren't recognized by Clang either.
|
||||
# To avoid unnecessary warnings and keep the build clean across toolchains, the flags are conditionally added
|
||||
# using the toolchain-gcc override. This makes it unnecessary to override anything for Clang.
|
||||
CXXFLAGS:append:toolchain-gcc = " -Wno-error=useless-cast -Wno-error=conversion"
|
||||
CXXFLAGS:append:toolchain-gcc = " -Wno-error=useless-cast -Wno-error=conversion -Wno-error=unused-but-set-variable"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
Reference in New Issue
Block a user