diff options
| author | Andrea Corallo | 2020-06-13 14:39:49 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-06-13 16:37:14 +0200 |
| commit | 7f8dbf70a5b0a61345b458537b1a7b4febf468fc (patch) | |
| tree | e051ed58188814cee4b306c14ad23f42e73292d9 /src/alloc.c | |
| parent | 88a116d3778982265bdccdd7196a8d76a45736f1 (diff) | |
| download | emacs-7f8dbf70a5b0a61345b458537b1a7b4febf468fc.tar.gz emacs-7f8dbf70a5b0a61345b458537b1a7b4febf468fc.zip | |
Fix const qualifier warnings
* src/lisp.h (struct Lisp_Subr): Remove const qualifier from
'native_c_name'.
* src/alloc.c (cleanup_vector): Cast to discard const qualifier.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 514810b83fa..42a53276bc8 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -3163,7 +3163,9 @@ cleanup_vector (struct Lisp_Vector *vector) | |||
| 3163 | PSEUDOVEC_STRUCT (vector, Lisp_Subr); | 3163 | PSEUDOVEC_STRUCT (vector, Lisp_Subr); |
| 3164 | if (!NILP (subr->native_comp_u[0])) | 3164 | if (!NILP (subr->native_comp_u[0])) |
| 3165 | { | 3165 | { |
| 3166 | xfree (subr->symbol_name); | 3166 | /* FIXME Alternative and non invasive solution to this |
| 3167 | cast? */ | ||
| 3168 | xfree ((char *)subr->symbol_name); | ||
| 3167 | xfree (subr->native_c_name[0]); | 3169 | xfree (subr->native_c_name[0]); |
| 3168 | } | 3170 | } |
| 3169 | } | 3171 | } |