]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove redundant diagnostic pragmas from <bits/iterator_concepts.h>
authorJonathan Wakely <jwakely@redhat.com>
Fri, 5 Dec 2025 15:59:23 +0000 (15:59 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 8 Dec 2025 09:21:42 +0000 (09:21 +0000)
Since r16-2190-g4faa42ac0dee2c this header no longer mentions __int128
explicitly, because it's just handled like other integer types now. So
we don't need the diagnostic pragmas to disables pedwarns for referring
to __int128.

libstdc++-v3/ChangeLog:

* include/bits/iterator_concepts.h: Remove diagnostic pragmas.

libstdc++-v3/include/bits/iterator_concepts.h

index fd91b22d75a5c7ec3da57ddf20220e59f31bc500..40ac808f6b6b31135f83b547d6a8c95446b6578c 100644 (file)
@@ -39,9 +39,6 @@
 #include <bits/ptr_traits.h>   // to_address
 #include <bits/ranges_cmp.h>   // identity, ranges::less
 
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wpedantic" // __int128
-
 namespace std _GLIBCXX_VISIBILITY(default)
 {
 _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -1032,6 +1029,5 @@ namespace ranges
 #endif // C++20 library concepts
 _GLIBCXX_END_NAMESPACE_VERSION
 } // namespace std
-#pragma GCC diagnostic pop
 #endif // C++20
 #endif // _ITERATOR_CONCEPTS_H