diff --git a/src/core/Any.h b/src/core/Any.h index 2799c1e8525fc4176e6dc7b98c3e791716c43f13..ac2f9dbb3f88be5fd0155ccd138dea9f33f74a94 100644 --- a/src/core/Any.h +++ b/src/core/Any.h @@ -25,6 +25,7 @@ #if defined(WALBERLA_USE_STD_ANY) #include <any> #elif defined(WALBERLA_USE_STD_EXPERIMENTAL_ANY) +#undef _LIBCPP_WARN_ON_DEPRECATED_EXPERIMENTAL_HEADER #include <experimental/any> #else #include <boost/any.hpp> diff --git a/src/core/Filesystem.h b/src/core/Filesystem.h index c7bdf2e1246e875854fe19eb681d35928baf7667..24e14a8683a99b3798d732e5df4a5ae19f729b4e 100644 --- a/src/core/Filesystem.h +++ b/src/core/Filesystem.h @@ -25,6 +25,7 @@ #if defined(WALBERLA_USE_STD_FILESYSTEM) #include <filesystem> #elif defined(WALBERLA_USE_STD_EXPERIMENTAL_FILESYSTEM) +#define _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM #include <experimental/filesystem> #else #include <boost/filesystem.hpp> diff --git a/src/core/Optional.h b/src/core/Optional.h index ad23d1666a07716c717591f4b188291869a74626..60883fd3d63a7366f40119aff89eddc351045db6 100644 --- a/src/core/Optional.h +++ b/src/core/Optional.h @@ -25,6 +25,7 @@ #if defined(WALBERLA_USE_STD_OPTIONAL) #include <optional> #elif defined(WALBERLA_USE_STD_EXPERIMENTAL_OPTIONAL) +#undef _LIBCPP_WARN_ON_DEPRECATED_EXPERIMENTAL_HEADER #include <experimental/optional> #else #include <boost/optional.hpp>