diff options
| author | Lars Ingebrigtsen | 2020-11-20 00:19:18 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2020-11-20 00:19:18 +0100 |
| commit | bc951000b35fc48edfe1f643998d201b971f0d30 (patch) | |
| tree | 90912ad4d8f0bea643abafd0d0d7aae8960cd070 /src | |
| parent | 8fac2444641567b10f4c38b599636aeae0478e68 (diff) | |
| download | emacs-bc951000b35fc48edfe1f643998d201b971f0d30.tar.gz emacs-bc951000b35fc48edfe1f643998d201b971f0d30.zip | |
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
| ^
Diffstat (limited to 'src')
| -rw-r--r-- | src/data.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/data.c b/src/data.c index 5d4df1886d3..384c2592204 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -1442,10 +1442,12 @@ set_internal (Lisp_Object symbol, Lisp_Object newval, Lisp_Object where, | |||
| 1442 | int idx = PER_BUFFER_IDX (offset); | 1442 | int idx = PER_BUFFER_IDX (offset); |
| 1443 | if (idx > 0 && bindflag == SET_INTERNAL_SET | 1443 | if (idx > 0 && bindflag == SET_INTERNAL_SET |
| 1444 | && !PER_BUFFER_VALUE_P (buf, idx)) | 1444 | && !PER_BUFFER_VALUE_P (buf, idx)) |
| 1445 | if (let_shadows_buffer_binding_p (sym)) | 1445 | { |
| 1446 | set_default_internal (symbol, newval, bindflag); | 1446 | if (let_shadows_buffer_binding_p (sym)) |
| 1447 | else | 1447 | set_default_internal (symbol, newval, bindflag); |
| 1448 | SET_PER_BUFFER_VALUE_P (buf, idx, 1); | 1448 | else |
| 1449 | SET_PER_BUFFER_VALUE_P (buf, idx, 1); | ||
| 1450 | } | ||
| 1449 | } | 1451 | } |
| 1450 | 1452 | ||
| 1451 | if (voide) | 1453 | if (voide) |