From 82b160f1d9a2bb83b9fe18f4fd36bb9c9e85a365 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 27 Mar 2024 21:34:16 -0700 Subject: microsoft-gsl: Disable disabled-macro-expansion warning as error on clang/musl Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta-oe/recipes-devtools') diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb index 7fc31486f8..6e29b2459d 100644 --- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb +++ b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb @@ -28,6 +28,8 @@ PACKAGECONFIG[ptest] = "-DGSL_TEST=ON,-DGSL_TEST=OFF,googletest" # clang disagrees with https://github.com/google/googletest/pull/3457 CXXFLAGS:append:toolchain-clang = " -Wno-error=switch-default" +# Disable disabled-macro-expansion warning as error as its seen on musl +CXXFLAGS:append:toolchain-clang:libc-musl = " -Wno-error=disabled-macro-expansion" do_install_ptest() { install -d ${D}${bindir} -- cgit v1.2.3-54-g00ecf