From: Jonathan Wakely Date: Fri, 5 Dec 2025 15:59:23 +0000 (+0000) Subject: libstdc++: Remove redundant diagnostic pragmas from X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7136f5b378e2684cf291b21e9a512c4c30ba9ef;p=thirdparty%2Fgcc.git libstdc++: Remove redundant diagnostic pragmas from 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. --- diff --git a/libstdc++-v3/include/bits/iterator_concepts.h b/libstdc++-v3/include/bits/iterator_concepts.h index fd91b22d75a..40ac808f6b6 100644 --- a/libstdc++-v3/include/bits/iterator_concepts.h +++ b/libstdc++-v3/include/bits/iterator_concepts.h @@ -39,9 +39,6 @@ #include // to_address #include // 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