From: Martin Quinson Date: Sun, 5 Nov 2023 16:10:42 +0000 (+0100) Subject: Fix gcc builds X-Git-Tag: v3.35~89^2~10 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9ccd5480180d91ddc3eb11fa532acb3cd3e95370 Fix gcc builds --- diff --git a/src/kernel/context/ContextBoost.hpp b/src/kernel/context/ContextBoost.hpp index ca190cd60e..adca9a2e9f 100644 --- a/src/kernel/context/ContextBoost.hpp +++ b/src/kernel/context/ContextBoost.hpp @@ -7,8 +7,10 @@ #define SIMGRID_KERNEL_CONTEXT_BOOST_CONTEXT_HPP /* Boost uses undef preprocessor symbols on FreeBSD, so disable our Werror for this file */ +#ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wundef" +#endif #include #if BOOST_VERSION < 106100 @@ -17,7 +19,9 @@ #include #endif +#ifdef __clang__ #pragma clang diagnostic pop +#endif #include #include