]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid a compilation warning about an ambiguous else
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 19 Nov 2020 23:19:18 +0000 (00:19 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 19 Nov 2020 23:19:18 +0000 (00:19 +0100)
* src/data.c (set_internal): Avoid compilation warning.

data.c:1443:9: error: suggest explicit braces to avoid ambiguous ‘else’
 1443 |      if (idx > 0 && bindflag == SET_INTERNAL_SET
      |         ^

src/data.c

index 5d4df1886d356ddd4ae9feaba6981bb70de64017..384c25922046ba0d41d55c47f4408ca85296bf27 100644 (file)
@@ -1442,10 +1442,12 @@ set_internal (Lisp_Object symbol, Lisp_Object newval, Lisp_Object where,
            int idx = PER_BUFFER_IDX (offset);
            if (idx > 0 && bindflag == SET_INTERNAL_SET
                && !PER_BUFFER_VALUE_P (buf, idx))
-             if (let_shadows_buffer_binding_p (sym))
-               set_default_internal (symbol, newval, bindflag);
-             else
-               SET_PER_BUFFER_VALUE_P (buf, idx, 1);
+             {
+               if (let_shadows_buffer_binding_p (sym))
+                 set_default_internal (symbol, newval, bindflag);
+               else
+                 SET_PER_BUFFER_VALUE_P (buf, idx, 1);
+             }
          }
 
        if (voide)