* eval.c (lisp_indirect_variable): Name an expression,
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Mar 2011 07:34:28 +0000 (00:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Mar 2011 07:34:28 +0000 (00:34 -0700)
to avoid gcc -Wbad-function-cast warning.

src/ChangeLog
src/eval.c

index 15d169a..a5a4657 100644 (file)
@@ -2,6 +2,8 @@
 
        * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
        (Fdefvar): Rewrite so as not to use empty "else".
+       (lisp_indirect_variable): Name an expression,
+       to avoid gcc -Wbad-function-cast warning.
 
        * callint.c (quotify_arg, quotify_args): Now static.
        (Fcall_interactively): Rename locals to avoid shadowing.
index 4f6d3dd..affafad 100644 (file)
@@ -856,7 +856,8 @@ user_variable_p_eh (Lisp_Object ignore)
 static Lisp_Object
 lisp_indirect_variable (Lisp_Object sym)
 {
-  XSETSYMBOL (sym, indirect_variable (XSYMBOL (sym)));
+  struct Lisp_Symbol *s = indirect_variable (XSYMBOL (sym));
+  XSETSYMBOL (sym, s);
   return sym;
 }