diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2015-05-23 11:17:38 +0000 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2015-05-23 11:17:38 +0000 |
commit | e2897e23a7574e634907e16e726add570d9e6d2d (patch) | |
tree | cf8f92b8e8f48a2e3702acf606076d4a293f6f6e | |
parent | 1399066d34a60f2cde21a4f28b7a64a88fd981ff (diff) | |
download | gcc-e2897e23a7574e634907e16e726add570d9e6d2d.zip gcc-e2897e23a7574e634907e16e726add570d9e6d2d.tar.gz gcc-e2897e23a7574e634907e16e726add570d9e6d2d.tar.bz2 |
2015-05-23 François Dumont fdumont@gcc.gnu.org>
PR libstdc++/64657
* include/debug/functions.h (__check_sorted_aux): Cast expression to
void.
From-SVN: r223605
-rw-r--r-- | libstdc++-v3/ChangeLog | 69 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/functions.h | 4 |
2 files changed, 50 insertions, 23 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6f2c465..412c8a3 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2015-05-23 François Dumont fdumont@gcc.gnu.org> + + PR libstdc++/64657 + * include/debug/functions.h (__check_sorted_aux): Cast expression to + void. + 2015-05-21 David Edelsohn <dje.gcc@gmail.com> PR target/66224 @@ -228,35 +234,56 @@ * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98. * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98. * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98. - * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc: Likewise. + * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc: + Likewise. * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated. - * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Adjust expected errors. - * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc: Likewise. - * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc: Likewise. - * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Likewise. - * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Likewise. - * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc: Likewise. - * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc: Likewise. - * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Likewise. - * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Likewise. - * testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc: Likewise. - * testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc: Likewise. - * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise. + * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: + Adjust expected errors. + * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc: + Likewise. + * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc: + Likewise. + * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: + Likewise. + * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: + Likewise. + * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc: + Likewise. + * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc: + Likewise. + * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: + Likewise. + * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: + Likewise. + * testsuite/23_containers/vector/requirements/dr438 + /constructor_1_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438 + /constructor_2_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: + Likewise. * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated. * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated. * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated. * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated. - * testsuite/ext/array_allocator/check_allocate_max_size.cc: Add -Wno-deprecated. - * testsuite/ext/array_allocator/check_deallocate_null.cc: Add -Wno-deprecated. + * testsuite/ext/array_allocator/check_allocate_max_size.cc: + Add -Wno-deprecated. + * testsuite/ext/array_allocator/check_deallocate_null.cc: + Add -Wno-deprecated. * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated. * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated. * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error. - * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc: Add -std=c++98. - * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc: Add -std=c++98. - * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc: Add -std=c++98. - * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Add -std=c++98 -fno-show-column. - * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc: Add -std=c++98. - * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc: Add -std=c++98. + * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc: + Add -std=c++98. + * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc: + Add -std=c++98. + * testsuite/tr1/2_general_utilities/shared_ptr/assign + /auto_ptr_rvalue_neg.cc: Add -std=c++98. + * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: + Add -std=c++98 -fno-show-column. + * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc: + Add -std=c++98. + * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc: + Add -std=c++98. * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98. * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98. diff --git a/libstdc++-v3/include/debug/functions.h b/libstdc++-v3/include/debug/functions.h index 3bbbd13..c67b4eb 100644 --- a/libstdc++-v3/include/debug/functions.h +++ b/libstdc++-v3/include/debug/functions.h @@ -336,7 +336,7 @@ namespace __gnu_debug return true; _ForwardIterator __next = __first; - for (++__next; __next != __last; __first = __next, ++__next) + for (++__next; __next != __last; __first = __next, (void)++__next) if (*__next < *__first) return false; @@ -362,7 +362,7 @@ namespace __gnu_debug return true; _ForwardIterator __next = __first; - for (++__next; __next != __last; __first = __next, ++__next) + for (++__next; __next != __last; __first = __next, (void)++__next) if (__pred(*__next, *__first)) return false; |