]> Savannah Git Hosting - gnulib.git/commitdiff
diffseq: don’t worry about clang
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Aug 2024 22:18:45 +0000 (15:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Aug 2024 22:19:30 +0000 (15:19 -0700)
* lib/diffseq.h: Stop worrying about __clang__ for pragmas.
This basically reverts the previous change to this file.
Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2024-08/msg00145.html

ChangeLog
lib/diffseq.h

index dd0b9a5d2fdd9ec965996df6e40391cd553bc5dc..118cfdac75f7dab1de7fdc23bc8843e131ca05f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-08-25  Paul Eggert  <eggert@cs.ucla.edu>
+
+       diffseq: don’t worry about clang
+       * lib/diffseq.h: Stop worrying about __clang__ for pragmas.
+       This basically reverts the previous change to this file.
+       Problem reported by Bruno Haible in:
+       https://lists.gnu.org/r/bug-gnulib/2024-08/msg00145.html
+
 2024-08-24  Bruno Haible  <bruno@clisp.org>
 
        copy-file: Add functions for copying non-confidential files.
index 5f1f173363b5ab2028d834e97f955fc2e733f960..f86ac4f7eed2eec4791a6689ac5dd19be680306c 100644 (file)
@@ -95,7 +95,7 @@
 /* Suppress gcc's "...may be used before initialized" warnings,
    generated by GCC versions up to at least GCC 14.2.
    Likewise for gcc -fanalyzer's "use of uninitialized value" warnings.  */
-#if 4 <= __GNUC__ + (7 <= __GNUC_MINOR__) && !__clang__
+#if 4 <= __GNUC__ + (7 <= __GNUC_MINOR__)
 # pragma GCC diagnostic push
 # pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
 # if 13 <= __GNUC__
@@ -558,7 +558,7 @@ compareseq (OFFSET xoff, OFFSET xlim, OFFSET yoff, OFFSET ylim,
   #undef XREF_YREF_EQUAL
 }
 
-#if 4 <= __GNUC__ + (7 <= __GNUC_MINOR__) && !__clang__
+#if 4 <= __GNUC__ + (7 <= __GNUC_MINOR__)
 # pragma GCC diagnostic pop
 #endif