From 9ccd5480180d91ddc3eb11fa532acb3cd3e95370 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 5 Nov 2023 17:10:42 +0100 Subject: [PATCH] Fix gcc builds --- src/kernel/context/ContextBoost.hpp | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.20.1