From f6edb0f1c849bb8c772f037a43b115391853d4b5 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 26 May 2023 21:37:42 +0200 Subject: [PATCH] diffseq: Silence another gcc warning. * lib/diffseq.h (compareseq): Move into the scope of the '#pragma GCC diagnostic'. --- ChangeLog | 6 ++++++ lib/diffseq.h | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) 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 -- 2.39.5