From: Eric Blake Date: Fri, 23 Sep 2005 07:58:42 +0000 (+0000) Subject: * libltdl/loaders/loadlibrary.c (vm_open): Silence gcc warnings. X-Git-Tag: release-2-1b~501 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f2721209f500654dddad4be413c3584a037ee60;p=thirdparty%2Flibtool.git * libltdl/loaders/loadlibrary.c (vm_open): Silence gcc warnings. [__CYGWIN__]: Include for prototype. --- diff --git a/ChangeLog b/ChangeLog index 3478f934f..7be3e240c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-09-23 Eric Blake (tiny change) + + * libltdl/loaders/loadlibrary.c (vm_open): Silence gcc warnings. + [__CYGWIN__]: Include for prototype. + 2005-09-22 Gary V. Vaughan * bootstrap: Don't clobber the working copy metadata in diff --git a/libltdl/loaders/loadlibrary.c b/libltdl/loaders/loadlibrary.c index 97d14fe69..12f8a8c0e 100644 --- a/libltdl/loaders/loadlibrary.c +++ b/libltdl/loaders/loadlibrary.c @@ -1,5 +1,5 @@ /* loader-loadlibrary.c -- dynamic linking for Win32 - Copyright (C) 1998, 1999, 2000, 2004 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2004, 2005 Free Software Foundation, Inc. Originally by Thomas Tanner NOTE: The canonical source of this file is maintained with the @@ -30,6 +30,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #include "lt__private.h" #include "lt_dlloader.h" +#if defined(__CYGWIN__) +# include +#endif + /* Use the preprocessor to rename non-static symbols to avoid namespace collisions when the loader code is statically linked into libltdl. Use the "_LTX_" prefix so that the symbol addresses can @@ -92,7 +96,6 @@ static lt_module vm_open (lt_user_data loader_data, const char *filename) { lt_module module = 0; - const char *errormsg = 0; char *searchname = 0; char *ext; char self_name_buf[MAX_PATH]; @@ -158,7 +161,7 @@ vm_open (lt_user_data loader_data, const char *filename) { lt__handle * cur = 0; - while (cur = (lt__handle *) lt_dlhandle_next ((lt_dlhandle) cur)) + while ((cur = (lt__handle *) lt_dlhandle_next ((lt_dlhandle) cur))) { if (!cur->module) {