From: Paul Eggert Date: Thu, 5 May 2011 07:23:07 +0000 (-0700) Subject: * image.c (Finit_image_library) [!HAVE_NTGUI]: Omit unused local. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~92^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4c4b566b11106e0dd4767340e6e7e0fc89cfd589;p=emacs.git * image.c (Finit_image_library) [!HAVE_NTGUI]: Omit unused local. --- diff --git a/src/ChangeLog b/src/ChangeLog index 2b4f498a0b9..755b02631f6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-05-05 Paul Eggert + * image.c (Finit_image_library) [!HAVE_NTGUI]: Omit unused local. + * term.c (vfatal): Remove stray call to va_end. It's not needed and the C Standard doesn't allow it here anyway. diff --git a/src/image.c b/src/image.c index d78b556d8c9..4e0503ac1dc 100644 --- a/src/image.c +++ b/src/image.c @@ -8602,11 +8602,9 @@ Libraries to load are specified in alist LIBRARIES (usually, the value of `dynamic-library-alist', which see). */) (Lisp_Object type, Lisp_Object libraries) { - Lisp_Object tested; - #ifdef HAVE_NTGUI /* Don't try to reload the library. */ - tested = Fassq (type, Vlibrary_cache); + Lisp_Object tested = Fassq (type, Vlibrary_cache); if (CONSP (tested)) return XCDR (tested); #endif