From: Bruno Haible Date: Fri, 26 May 2023 19:37:42 +0000 (+0200) Subject: diffseq: Silence another gcc warning. X-Git-Tag: v1.0~1283 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=f6edb0f1c849bb8c772f037a43b115391853d4b5;p=gnulib.git diffseq: Silence another gcc warning. * lib/diffseq.h (compareseq): Move into the scope of the '#pragma GCC diagnostic'. --- diff --git a/ChangeLog b/ChangeLog index ade2311f18..29072ee48b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-05-26 Bruno Haible + + diffseq: Silence another gcc warning. + * lib/diffseq.h (compareseq): Move into the scope of the '#pragma GCC + diagnostic'. + 2023-05-26 Bruno Haible copy-file: Silence gcc warnings. diff --git a/lib/diffseq.h b/lib/diffseq.h index bab8256f64..06e1465bf1 100644 --- a/lib/diffseq.h +++ b/lib/diffseq.h @@ -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