1diff --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
2index 7fc31486f8..58e59def87 100644
3--- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb
4+++ b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb
5@@ -27,7 +27,7 @@ PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'ptest','', d)}"
6 PACKAGECONFIG[ptest] = "-DGSL_TEST=ON,-DGSL_TEST=OFF,googletest"
7
8 # clang disagrees with https://github.com/google/googletest/pull/3457
9-CXXFLAGS:append:toolchain-clang = " -Wno-error=switch-default"
10+CXXFLAGS:append:toolchain-clang = " -Wno-error=switch-default -Wno-error=disabled-macro-expansion"
11
12 do_install_ptest() {
13 install -d ${D}${bindir}