Skip to content

Commit bc319a5

Browse files
committed
Silence GCC warnings
1 parent 3666789 commit bc319a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/include/__iterator/bounded_iter.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ struct __bounded_iter {
117117
pointer __end_ptr = std::__to_address(__end);
118118
_LIBCPP_ASSUME(__begin_ptr <= __current_ptr);
119119
_LIBCPP_ASSUME(__current_ptr <= __end_ptr);
120+
// Silence warnings when assumptions are disabled.
121+
(void)__begin_ptr;
122+
(void)__current_ptr;
123+
(void)__end_ptr;
120124
}
121125

122126
template <class _It>

0 commit comments

Comments
 (0)