]> Savannah Git Hosting - gnulib.git/commitdiff
diffseq: Silence another gcc warning.
authorBruno Haible <bruno@clisp.org>
Fri, 26 May 2023 19:37:42 +0000 (21:37 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 26 May 2023 19:37:42 +0000 (21:37 +0200)
* lib/diffseq.h (compareseq): Move into the scope of the '#pragma GCC
diagnostic'.

ChangeLog
lib/diffseq.h

index ade2311f18184104ab41b2caf9adade9cc1b6391..29072ee48beafca3b4542175c23eb4fc6158a6de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-05-26  Bruno Haible  <bruno@clisp.org>
+
+       diffseq: Silence another gcc warning.
+       * lib/diffseq.h (compareseq): Move into the scope of the '#pragma GCC
+       diagnostic'.
+
 2023-05-26  Bruno Haible  <bruno@clisp.org>
 
        copy-file: Silence gcc warnings.
index bab8256f64d97f8b77fb8e1f7f52725aed5ab577..06e1465bf1bee0cd74fac1fec3e5d9cbc0c21c3d 100644 (file)
@@ -450,10 +450,6 @@ diag (OFFSET xoff, OFFSET xlim, OFFSET yoff, OFFSET ylim, bool find_minimal,
   #undef XREF_YREF_EQUAL
 }
 
-#if __GNUC__ + (__GNUC_MINOR__ >= 7) > 4
-# pragma GCC diagnostic pop
-#endif
-
 
 /* Compare in detail contiguous subsequences of the two vectors
    which are known, as a whole, to match each other.
@@ -572,6 +568,10 @@ compareseq (OFFSET xoff, OFFSET xlim, OFFSET yoff, OFFSET ylim,
   #undef XREF_YREF_EQUAL
 }
 
+#if __GNUC__ + (__GNUC_MINOR__ >= 7) > 4
+# pragma GCC diagnostic pop
+#endif
+
 #undef ELEMENT
 #undef EQUAL
 #undef OFFSET