diff options
| author | Paul Eggert | 2011-03-16 00:34:28 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-16 00:34:28 -0700 |
| commit | cfcbfb1aa5d013f114bc002110166fd1f5392f56 (patch) | |
| tree | 9525f3cfa5a5071cb9105d679ee7e6b0809eb588 /src | |
| parent | d28a21703d47c6983e91d3d4a464546750519236 (diff) | |
| download | emacs-cfcbfb1aa5d013f114bc002110166fd1f5392f56.tar.gz emacs-cfcbfb1aa5d013f114bc002110166fd1f5392f56.zip | |
* eval.c (lisp_indirect_variable): Name an expression,
to avoid gcc -Wbad-function-cast warning.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/eval.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 15d169a8b30..a5a4657f7dc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static. | 3 | * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static. |
| 4 | (Fdefvar): Rewrite so as not to use empty "else". | 4 | (Fdefvar): Rewrite so as not to use empty "else". |
| 5 | (lisp_indirect_variable): Name an expression, | ||
| 6 | to avoid gcc -Wbad-function-cast warning. | ||
| 5 | 7 | ||
| 6 | * callint.c (quotify_arg, quotify_args): Now static. | 8 | * callint.c (quotify_arg, quotify_args): Now static. |
| 7 | (Fcall_interactively): Rename locals to avoid shadowing. | 9 | (Fcall_interactively): Rename locals to avoid shadowing. |
diff --git a/src/eval.c b/src/eval.c index 4f6d3dd015d..affafadfecf 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -856,7 +856,8 @@ user_variable_p_eh (Lisp_Object ignore) | |||
| 856 | static Lisp_Object | 856 | static Lisp_Object |
| 857 | lisp_indirect_variable (Lisp_Object sym) | 857 | lisp_indirect_variable (Lisp_Object sym) |
| 858 | { | 858 | { |
| 859 | XSETSYMBOL (sym, indirect_variable (XSYMBOL (sym))); | 859 | struct Lisp_Symbol *s = indirect_variable (XSYMBOL (sym)); |
| 860 | XSETSYMBOL (sym, s); | ||
| 860 | return sym; | 861 | return sym; |
| 861 | } | 862 | } |
| 862 | 863 | ||