aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-12-13 16:53:06 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2024-12-17 18:54:17 +0000
commit7d6dc2130970ccf6555d4e9f977515c6c20f7d2f (patch)
tree052301bef1eabe73e5174e925611db8f0fd8a6f6
parentb273e25e11c842a5729d0e03c85088cf5ba8e06c (diff)
downloadgcc-7d6dc2130970ccf6555d4e9f977515c6c20f7d2f.zip
gcc-7d6dc2130970ccf6555d4e9f977515c6c20f7d2f.tar.gz
gcc-7d6dc2130970ccf6555d4e9f977515c6c20f7d2f.tar.bz2
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.
-rw-r--r--libstdc++-v3/include/debug/safe_local_iterator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/debug/safe_local_iterator.h b/libstdc++-v3/include/debug/safe_local_iterator.h
index b4da11d..1766cb7 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) \