Commit bc951000 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Avoid a compilation warning about an ambiguous else

* 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
      |         ^
parent 8fac2444
Pipeline #7852 passed with stage
in 64 minutes and 47 seconds
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment