From ebeaa54f1986b6414c6af60660dc6bd53cbf3bf9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 12 Oct 2021 11:54:32 -0700 Subject: [PATCH] Pacify GCC 11 -fanalyzer on x86-64 * src/buffer.c (fix_overlays_before): Redo slightly to work around GCC bug 102692 . --- src/buffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index f405bcb5834..eca2843e2bc 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -3843,7 +3843,9 @@ fix_overlays_before (struct buffer *bp, ptrdiff_t prev, ptrdiff_t pos) or the found one ends before PREV, or the found one is the last one in the list, we don't have to fix anything. */ - if (!tail || end < prev || !tail->next) + if (!tail) + return; + if (end < prev || !tail->next) return; right_pair = parent; -- 2.39.2