(Fdefvar): Declare pdl from last change as `volatile' to prevent
authorEli Zaretskii <eliz@gnu.org>
Fri, 26 Nov 2004 11:47:20 +0000 (11:47 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 26 Nov 2004 11:47:20 +0000 (11:47 +0000)
compiler warnings.

src/eval.c

index e8a8e46..15b292d 100644 (file)
@@ -789,7 +789,7 @@ usage: (defvar SYMBOL &optional INITVALUE DOCSTRING)  */)
       else
        { /* Check if there is really a global binding rather than just a let
             binding that shadows the global unboundness of the var.  */
-         struct specbinding *pdl = specpdl_ptr;
+         volatile struct specbinding *pdl = specpdl_ptr;
          while (--pdl >= specpdl)
            {
              if (EQ (pdl->symbol, sym) && !pdl->func