From: Paul Eggert Date: Tue, 12 Oct 2021 18:54:32 +0000 (-0700) Subject: Pacify GCC 11 -fanalyzer on x86-64 X-Git-Tag: emacs-28.0.90~306 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ebeaa54f1986b6414c6af60660dc6bd53cbf3bf9;p=emacs.git Pacify GCC 11 -fanalyzer on x86-64 * src/buffer.c (fix_overlays_before): Redo slightly to work around GCC bug 102692 . --- 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;