From: Jonathan Wakely Date: Tue, 6 Jan 2026 16:18:21 +0000 (+0000) Subject: libstdc++: Remove redundant return statement after static_assert(false) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6c853112d92c68f5147de4bea7f1983ebd60f0b;p=thirdparty%2Fgcc.git libstdc++: Remove redundant return statement after static_assert(false) Jakub's fix for PR c++/91388 means that we don't need an unreachable return statement after static_assert(false). libstdc++-v3/ChangeLog: * include/bits/atomic_wait.h (__wait_args::_M_setup_wait): Remove unreachable return statement. Reviewed-by: Tomasz KamiƄski --- diff --git a/libstdc++-v3/include/bits/atomic_wait.h b/libstdc++-v3/include/bits/atomic_wait.h index 10f4f913467..b6240a95370 100644 --- a/libstdc++-v3/include/bits/atomic_wait.h +++ b/libstdc++-v3/include/bits/atomic_wait.h @@ -226,10 +226,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION else if constexpr (sizeof(_Tp) == sizeof(__UINT64_TYPE__)) return __builtin_bit_cast(_Tp, (__UINT64_TYPE__)_M_old); else - { - static_assert(false); // Unsupported size - return {}; - } + static_assert(false); // Unsupported size } if constexpr (!__platform_wait_uses_type<_Tp>)