mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
libcereal: Disable c++11-narrowing-const-reference warning as error
Clang 18 is fussy about it Fixes unittests/map.hpp:65:25: error: non-constant-expression cannot be narrowed from type 'typename std::enable_if<std::is_integral<char>::value && sizeof(char) == sizeof(char), char>::type' (aka 'char') to 'const signed char' in initializer list [-Wc++11-narrowing-const-reference] Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -29,6 +29,8 @@ S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake pkgconfig ptest
|
||||
|
||||
CXXFLAGS:append:toolchain-clang = " -Wno-error=c++11-narrowing-const-reference"
|
||||
|
||||
LIBATOMIC:mips = "${@bb.utils.contains('PTEST_ENABLED', '1', '-DCEREAL_THREAD_LIBS="-latomic"', '', d)}"
|
||||
LIBATOMIC:riscv32 = "${@bb.utils.contains('PTEST_ENABLED', '1', '-DCEREAL_THREAD_LIBS="-latomic"', '', d)}"
|
||||
LIBATOMIC:powerpc = "${@bb.utils.contains('PTEST_ENABLED', '1', '-DCEREAL_THREAD_LIBS="-latomic"', '', d)}"
|
||||
|
||||
Reference in New Issue
Block a user