mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
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 <tkaminsk@redhat.com>
This commit is contained in:
committed by
Jonathan Wakely
parent
412eb96b1c
commit
a6c853112d
@@ -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>)
|
||||
|
||||
Reference in New Issue
Block a user