summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Simoes <ricardo.simoes@pt.bosch.com>2024-06-28 11:12:56 +0200
committerKhem Raj <raj.khem@gmail.com>2024-06-28 11:22:06 -0700
commit340ba69c35102d97112817f06e1dbe6dbec807b1 (patch)
tree6e806a24b1639337bb8e269885533134ee95ce72
parent4b306f382f4cf133308c7eb4b056a755f5bc4c96 (diff)
downloadmeta-openembedded-340ba69c35102d97112817f06e1dbe6dbec807b1.tar.gz
magic-enum: Disable unused-value warning in tests
With gcc 14.1.0, there is one compilation warning found in the unit tests which cause ptest builds to fail: test_containers.cpp:290:89: error: value computed is not used [-Werror=unused-value] 290 | magic_enum::containers::set color_set_not_const {Color::RED, Color::GREEN, Color::BLUE}; | This is the same behavior as described in [1]. Thus, we can safely treat this specific warning not as an error until the gcc bug is fixed. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?format=multiple&id=114970 Signed-off-by: Ricardo Simoes <ricardo.simoes@pt.bosch.com> Signed-off-by: Mark Jonas <mark.jonas@de.bosch.com> Reported-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/magic-enum/magic-enum_0.9.5.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/magic-enum/magic-enum_0.9.5.bb b/meta-oe/recipes-extended/magic-enum/magic-enum_0.9.5.bb
index 096f869c30..ee547f6348 100644
--- a/meta-oe/recipes-extended/magic-enum/magic-enum_0.9.5.bb
+++ b/meta-oe/recipes-extended/magic-enum/magic-enum_0.9.5.bb
@@ -30,6 +30,9 @@ do_install_ptest () {
30 install -m 0755 ${B}/test/test_* ${D}${PTEST_PATH}/tests 30 install -m 0755 ${B}/test/test_* ${D}${PTEST_PATH}/tests
31} 31}
32 32
33# Workaround for bug 114970 reported for gcc 14.1.0
34CXXFLAGS += "-Wno-error=unused-value"
35
33# Add catkin and colcon (ROS build system) support 36# Add catkin and colcon (ROS build system) support
34FILES:${PN}-dev += "\ 37FILES:${PN}-dev += "\
35 ${datadir}/magic_enum/package.xml \ 38 ${datadir}/magic_enum/package.xml \