diff mbox series

[19/19] pango: Disable Wimplicit-fallthrough as error

Message ID 20191229184415.19514-19-raj.khem@gmail.com
State Accepted
Commit 735eb7f3e0d14be50b17e85af6e6da7fc2921924
Headers show
Series [01/19] util-linux: Use PCRE for hardlink | expand

Commit Message

Khem Raj Dec. 29, 2019, 6:44 p.m. UTC
Clang is quite a lot more stricter and ends up finding more cases,
these are code format warnings so its safer to disable them here.

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta/recipes-graphics/pango/pango_1.44.7.bb | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.24.1

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/recipes-graphics/pango/pango_1.44.7.bb b/meta/recipes-graphics/pango/pango_1.44.7.bb
index afb56a6cde..0ee8abcc09 100644
--- a/meta/recipes-graphics/pango/pango_1.44.7.bb
+++ b/meta/recipes-graphics/pango/pango_1.44.7.bb
@@ -32,6 +32,10 @@  PACKAGECONFIG[thai] = ",,libthai"
 GTKDOC_MESON_OPTION = "gtk_doc"
 GIR_MESON_OPTION = 'introspection'
 
+do_configure_prepend_toolchain-clang() {
+    sed -i -e "/Werror=implicit-fallthrough/d" ${S}/meson.build
+}
+
 LEAD_SONAME = "libpango-1.0*"
 
 FILES_${PN} = "${bindir}/* ${libdir}/libpango*${SOLIBS}"