]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Avoid -Wparentheses warning with debug iterators
authorPatrick Palka <ppalka@redhat.com>
Tue, 13 Sep 2022 14:41:47 +0000 (10:41 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 13 Sep 2022 14:41:47 +0000 (10:41 -0400)
commitedf6fe7800369136c1a8ddcaf75a042a3a938c84
tree892b5de9699842c065bdf023746651fef26b877b
parent5e1031ff8ec542f14551624e8df6db450794e93e
libstdc++: Avoid -Wparentheses warning with debug iterators

I noticed compiling e.g. std/ranges/adaptors/join.cc with
-D_GLIBCXX_DEBUG -Wsystem-headers -Wall gives the warning:

  gcc/libstdc++-v3/include/debug/safe_iterator.h:477:9: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]

libstdc++-v3/ChangeLog:

* include/debug/safe_iterator.h (_GLIBCXX_DEBUG_VERIFY_OPERANDS):
Add parentheses to avoid -Wparentheses warning.
libstdc++-v3/include/debug/safe_iterator.h
This page took 0.047726 seconds and 5 git commands to generate.