]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix -Wparentheses warning in Debug Mode macro
authorJonathan Wakely <jwakely@redhat.com>
Fri, 13 Dec 2024 16:53:06 +0000 (16:53 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 17 Dec 2024 18:54:17 +0000 (18:54 +0000)
libstdc++-v3/ChangeLog:

* include/debug/safe_local_iterator.h (_GLIBCXX_DEBUG_VERIFY_OPERANDS):
Add parentheses to avoid -Wparentheses warning.

libstdc++-v3/include/debug/safe_local_iterator.h

index b4da11d5ee13ac3d816c048f7ba2d1d9d01bf140..1766cb7e72aa0695368a44138edeb868c9bd0000 100644 (file)
@@ -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)              \