]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Disable -Wlong-long warnings in boost_concept_check.h
authorJonathan Wakely <jwakely@redhat.com>
Tue, 20 May 2025 14:14:42 +0000 (15:14 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 29 May 2025 10:49:03 +0000 (11:49 +0100)
The _IntegerConcept, _SignedIntegerConcept and _UnsignedIntegerConcept
class template are specialized for long long, which gives warnings with
-Wsystem-headers in C++98 mode.

libstdc++-v3/ChangeLog:

* include/bits/boost_concept_check.h: Disable -Wlong-long
warnings.
* testsuite/24_iterators/operations/prev_neg.cc: Adjust dg-error
line number.

libstdc++-v3/include/bits/boost_concept_check.h
libstdc++-v3/testsuite/24_iterators/operations/prev_neg.cc

index 7a99f7442cfee299a1b4cef24574f89f83a09f9e..a1f488dd8af17e63adbd85a1528c1e41a1ac38e0 100644 (file)
@@ -68,6 +68,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
+#pragma GCC diagnostic ignored "-Wlong-long"
 
 #define _IsUnused __attribute__ ((__unused__))
 
index f9de894be2e5923c00b05e3e52d2cae69581bf29..5fdfa9ec1cb1037a7073f4b0f002f34eac594ced 100644 (file)
@@ -38,5 +38,5 @@ test02()
 {
   const Y array[1] = { };
   (void) std::prev(array + 1);
-  // { dg-error "forward_iterator" "" { target *-*-* } 241 }
+  // { dg-error "forward_iterator" "" { target *-*-* } 242 }
 }