Message ID | 20240208075438.1045660-4-raj.khem@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [meta-oe,1/4] can-isotp: Update to latest and skip it | expand |
diff --git a/meta-oe/recipes-support/libcereal/libcereal_1.3.2.bb b/meta-oe/recipes-support/libcereal/libcereal_1.3.2.bb index e100265f7d..6ad20d6370 100644 --- a/meta-oe/recipes-support/libcereal/libcereal_1.3.2.bb +++ b/meta-oe/recipes-support/libcereal/libcereal_1.3.2.bb @@ -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)}"
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> --- meta-oe/recipes-support/libcereal/libcereal_1.3.2.bb | 2 ++ 1 file changed, 2 insertions(+)