diff options
| author | Eli Zaretskii | 2022-01-29 09:12:30 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2022-01-29 09:12:30 +0200 |
| commit | c4e66bb2b567f9dced364013a84ba415dd55290d (patch) | |
| tree | 151e966e631e856aa5ba064f062af119b224a30f /src/data.c | |
| parent | 7e17749ada101fbfb772a79deda5f7087ba9e96d (diff) | |
| download | emacs-c4e66bb2b567f9dced364013a84ba415dd55290d.tar.gz emacs-c4e66bb2b567f9dced364013a84ba415dd55290d.zip | |
Fix compiler warning due to a recent change
* src/data.c (Ffset): Avoid compiler warning about 'function'.
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/data.c b/src/data.c index 039e6c31134..a5a76a27554 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -836,7 +836,6 @@ DEFUN ("fset", Ffset, Sfset, 2, 2, 0, | |||
| 836 | doc: /* Set SYMBOL's function definition to DEFINITION, and return DEFINITION. */) | 836 | doc: /* Set SYMBOL's function definition to DEFINITION, and return DEFINITION. */) |
| 837 | (register Lisp_Object symbol, Lisp_Object definition) | 837 | (register Lisp_Object symbol, Lisp_Object definition) |
| 838 | { | 838 | { |
| 839 | register Lisp_Object function; | ||
| 840 | CHECK_SYMBOL (symbol); | 839 | CHECK_SYMBOL (symbol); |
| 841 | /* Perhaps not quite the right error signal, but seems good enough. */ | 840 | /* Perhaps not quite the right error signal, but seems good enough. */ |
| 842 | if (NILP (symbol) && !NILP (definition)) | 841 | if (NILP (symbol) && !NILP (definition)) |
| @@ -844,11 +843,11 @@ DEFUN ("fset", Ffset, Sfset, 2, 2, 0, | |||
| 844 | think this one little sanity check is worth its cost, but anyway. */ | 843 | think this one little sanity check is worth its cost, but anyway. */ |
| 845 | xsignal1 (Qsetting_constant, symbol); | 844 | xsignal1 (Qsetting_constant, symbol); |
| 846 | 845 | ||
| 847 | function = XSYMBOL (symbol)->u.s.function; | ||
| 848 | |||
| 849 | eassert (valid_lisp_object_p (definition)); | 846 | eassert (valid_lisp_object_p (definition)); |
| 850 | 847 | ||
| 851 | #ifdef HAVE_NATIVE_COMP | 848 | #ifdef HAVE_NATIVE_COMP |
| 849 | register Lisp_Object function = XSYMBOL (symbol)->u.s.function; | ||
| 850 | |||
| 852 | if (comp_enable_subr_trampolines | 851 | if (comp_enable_subr_trampolines |
| 853 | && SUBRP (function) | 852 | && SUBRP (function) |
| 854 | && !SUBR_NATIVE_COMPILEDP (function)) | 853 | && !SUBR_NATIVE_COMPILEDP (function)) |