From b3c6f35ccc6f83852e4ce7760a334ef5b5a60e23 Mon Sep 17 00:00:00 2001 From: eastb233 Date: Fri, 13 Jun 2025 14:17:35 +0800 Subject: [PATCH] clang: fix bash compile error with clang * add -Wno-return-type option to suppress error Signed-off-by: eastb233 --- .../clang-layer/recipes-extended/bash/bash_%.bbappend | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 meta-openeuler/dynamic-layers/clang-layer/recipes-extended/bash/bash_%.bbappend diff --git a/meta-openeuler/dynamic-layers/clang-layer/recipes-extended/bash/bash_%.bbappend b/meta-openeuler/dynamic-layers/clang-layer/recipes-extended/bash/bash_%.bbappend new file mode 100644 index 00000000000..be80884975c --- /dev/null +++ b/meta-openeuler/dynamic-layers/clang-layer/recipes-extended/bash/bash_%.bbappend @@ -0,0 +1,2 @@ +CFLAGS:append:toolchain-clang = " -Wno-return-type " +CXXFLAGS:append:toolchain-clang = " -Wno-return-type " \ No newline at end of file -- Gitee