diff options
| author | Philipp Stephani | 2017-06-17 17:10:41 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2017-06-17 17:10:41 +0200 |
| commit | 61dc103969fce1a0bf179e9e799d1feba128b525 (patch) | |
| tree | 27329dee0b2816f3d0cb421f0a441631d31326f5 /src | |
| parent | c3813b2aa8d2f5a625195fdbbfe6a01a602d7735 (diff) | |
| download | emacs-61dc103969fce1a0bf179e9e799d1feba128b525.tar.gz emacs-61dc103969fce1a0bf179e9e799d1feba128b525.zip | |
; * src/emacs-module.c (funcall_module): Add another FIXME
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs-module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c index 5c413ee0556..2693a4529d6 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c | |||
| @@ -768,6 +768,9 @@ funcall_module (Lisp_Object function, ptrdiff_t nargs, Lisp_Object *arglist) | |||
| 768 | USE_SAFE_ALLOCA; | 768 | USE_SAFE_ALLOCA; |
| 769 | ATTRIBUTE_MAY_ALIAS emacs_value *args; | 769 | ATTRIBUTE_MAY_ALIAS emacs_value *args; |
| 770 | if (plain_values && ! module_assertions) | 770 | if (plain_values && ! module_assertions) |
| 771 | /* FIXME: The cast below is incorrect because the argument array | ||
| 772 | is not declared as const, so module functions can modify it. | ||
| 773 | Either declare it as const, or remove this branch. */ | ||
| 771 | args = (emacs_value *) arglist; | 774 | args = (emacs_value *) arglist; |
| 772 | else | 775 | else |
| 773 | { | 776 | { |