diff --git a/libsolutil/Numeric.h b/libsolutil/Numeric.h index 557f7e2bc..384589764 100644 --- a/libsolutil/Numeric.h +++ b/libsolutil/Numeric.h @@ -29,7 +29,15 @@ #error "Unsupported Boost version. At least 1.65 required." #endif +// TODO: do this only conditionally as soon as a boost version with gcc 12 support is released. +#if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ >= 12) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif #include +#if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ >= 12) +#pragma GCC diagnostic pop +#endif #include