From 4c4b566b11106e0dd4767340e6e7e0fc89cfd589 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 5 May 2011 00:23:07 -0700 Subject: [PATCH] * image.c (Finit_image_library) [!HAVE_NTGUI]: Omit unused local. --- src/ChangeLog | 2 ++ src/image.c | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2