emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 ebeaa54: Pacify GCC 11 -fanalyzer on x86-64


From: Paul Eggert
Subject: emacs-28 ebeaa54: Pacify GCC 11 -fanalyzer on x86-64
Date: Tue, 12 Oct 2021 14:54:43 -0400 (EDT)

branch: emacs-28
commit ebeaa54f1986b6414c6af60660dc6bd53cbf3bf9
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>

    Pacify GCC 11 -fanalyzer on x86-64
    
    * src/buffer.c (fix_overlays_before):
    Redo slightly to work around GCC bug 102692
    <https://gcc.gnu.org/bugzilla//show_bug.cgi?id=102692>.
---
 src/buffer.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/buffer.c b/src/buffer.c
index f405bcb..eca2843 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]