https://gcc.gnu.org/g:7d6dc2130970ccf6555d4e9f977515c6c20f7d2f
commit r15-6312-g7d6dc2130970ccf6555d4e9f977515c6c20f7d2f Author: Jonathan Wakely <jwak...@redhat.com> Date: Fri Dec 13 16:53:06 2024 +0000 libstdc++: Fix -Wparentheses warning in Debug Mode macro libstdc++-v3/ChangeLog: * include/debug/safe_local_iterator.h (_GLIBCXX_DEBUG_VERIFY_OPERANDS): Add parentheses to avoid -Wparentheses warning. Diff: --- libstdc++-v3/include/debug/safe_local_iterator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/debug/safe_local_iterator.h b/libstdc++-v3/include/debug/safe_local_iterator.h index b4da11d5ee13..1766cb7e72aa 100644 --- a/libstdc++-v3/include/debug/safe_local_iterator.h +++ b/libstdc++-v3/include/debug/safe_local_iterator.h @@ -32,7 +32,7 @@ #include <debug/safe_unordered_base.h> #define _GLIBCXX_DEBUG_VERIFY_OPERANDS(_Lhs, _Rhs) \ - _GLIBCXX_DEBUG_VERIFY(!_Lhs._M_singular() && !_Rhs._M_singular() \ + _GLIBCXX_DEBUG_VERIFY((!_Lhs._M_singular() && !_Rhs._M_singular()) \ || (_Lhs._M_value_initialized() \ && _Rhs._M_value_initialized()), \ _M_message(__msg_iter_compare_bad) \