summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-02-07 23:51:11 -0800
committerKhem Raj <raj.khem@gmail.com>2024-02-09 09:52:15 -0800
commitbc5c3e48c15dc4a454b3643b42bf8ce8ac8b41cc (patch)
treec3645ace52d098e307370c7afaa1e7dc35c4d5f1
parent192f412b3d67858398f30bab98e8ed26afc98eeb (diff)
downloadmeta-openembedded-bc5c3e48c15dc4a454b3643b42bf8ce8ac8b41cc.tar.gz
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>
-rw-r--r--meta-oe/recipes-support/libcereal/libcereal_1.3.2.bb2
1 files changed, 2 insertions, 0 deletions
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"
29 29
30inherit cmake pkgconfig ptest 30inherit cmake pkgconfig ptest
31 31
32CXXFLAGS:append:toolchain-clang = " -Wno-error=c++11-narrowing-const-reference"
33
32LIBATOMIC:mips = "${@bb.utils.contains('PTEST_ENABLED', '1', '-DCEREAL_THREAD_LIBS="-latomic"', '', d)}" 34LIBATOMIC:mips = "${@bb.utils.contains('PTEST_ENABLED', '1', '-DCEREAL_THREAD_LIBS="-latomic"', '', d)}"
33LIBATOMIC:riscv32 = "${@bb.utils.contains('PTEST_ENABLED', '1', '-DCEREAL_THREAD_LIBS="-latomic"', '', d)}" 35LIBATOMIC:riscv32 = "${@bb.utils.contains('PTEST_ENABLED', '1', '-DCEREAL_THREAD_LIBS="-latomic"', '', d)}"
34LIBATOMIC:powerpc = "${@bb.utils.contains('PTEST_ENABLED', '1', '-DCEREAL_THREAD_LIBS="-latomic"', '', d)}" 36LIBATOMIC:powerpc = "${@bb.utils.contains('PTEST_ENABLED', '1', '-DCEREAL_THREAD_LIBS="-latomic"', '', d)}"