diff --git a/include/boost/json/detail/value_to.hpp b/include/boost/json/detail/value_to.hpp index 18f48b923..0f95cdff0 100644 --- a/include/boost/json/detail/value_to.hpp +++ b/include/boost/json/detail/value_to.hpp @@ -304,8 +304,15 @@ try_make_tuple_like( typename std::decay>::type >( arr[Is], ctx, ec) ...); +#if defined(BOOST_GCC) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif if( ec.failed() ) return {boost::system::in_place_error, ec}; +#if defined(BOOST_GCC) +# pragma GCC diagnostic pop +#endif return { boost::system::in_place_value, T(std::move(*std::get(items))...)}; diff --git a/test/Jamfile b/test/Jamfile index b9bf751ed..e8d3b33a3 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -63,6 +63,7 @@ project . msvc:_SCL_SECURE_NO_WARNINGS msvc:_CRT_SECURE_NO_WARNINGS + gcc:-Wno-restrict # annoying false positives ; for local f in $(SOURCES)