From b75386f628b46f1060a20b6e015931bac37b7da7 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 12 Feb 2023 04:50:04 +0200 Subject: [PATCH] Avoid -Wuninitialized under GCC 11.3 --- include/boost/function/function_template.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/function/function_template.hpp b/include/boost/function/function_template.hpp index bd0ce79..2381446 100644 --- a/include/boost/function/function_template.hpp +++ b/include/boost/function/function_template.hpp @@ -914,8 +914,8 @@ namespace boost { // This warning is technically correct, but we don't want to pay the price for initializing // just to silence a warning: https://github.com/boostorg/function/issues/27 # pragma GCC diagnostic ignored "-Wmaybe-uninitialized" -# if (BOOST_GCC >= 120000) - // GCC 12 emits a different warning: https://github.com/boostorg/function/issues/42 +# if (BOOST_GCC >= 110000) + // GCC 11.3, 12 emit a different warning: https://github.com/boostorg/function/issues/42 # pragma GCC diagnostic ignored "-Wuninitialized" # endif # endif