-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I. -DLTDLOPEN=libltdlc
"-DLT_CONFIG_H=<config.h>" -DLTDL -I. -I. -Ilibltdl -I./libltdl
- -I./libltdl -O2 -Wall -MT libltdlc_la-ltdl.lo -MD -MP -MF
.deps/libltdlc_la-ltdl.Tpo -c ltdl.c  -fPIC -DPIC -o .libs/libltdlc_la-ltdl.o
ltdl.c:155: warning: 'loader_init_callback' defined but not used

Checking in this obvious patch.

2006-07-22  Eric Blake  <[EMAIL PROTECTED]>

        * libltdl/ltdl.c (loader_init_callback) [HAVE_LIBDLLOADER]:
        Protect definition to avoid compiler warnings about unused
        function.

- --
Life is short - so eat dessert first!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEwouZ84KuGfSFAYARAit6AJ4jx1PPr3H0LVQYnS/OGxwTEULRiwCeN8QR
eo6qkjPIANNxOC0ThkKJges=
=06n5
-----END PGP SIGNATURE-----
Index: libltdl/ltdl.c
===================================================================
RCS file: /sources/libtool/libtool/libltdl/ltdl.c,v
retrieving revision 1.239
diff -u -p -r1.239 ltdl.c
--- libltdl/ltdl.c      17 May 2006 23:12:07 -0000      1.239
+++ libltdl/ltdl.c      22 Jul 2006 20:32:16 -0000
@@ -130,12 +130,15 @@ static    int     list_files_by_dir     (const 
                                       char **pargz, size_t *pargz_len);
 static int     file_not_found        (void);
 
+#ifdef HAVE_LIBDLLOADER
 static int     loader_init_callback  (lt_dlhandle handle);
+#endif /* HAVE_LIBDLLOADER */
+
 static int     loader_init           (lt_get_vtable *vtable_func,
                                       lt_user_data data);
 
 static char           *user_search_path= 0;
-static lt_dlhandle     handles         = 0;
+static lt_dlhandle     handles = 0;
 static int             initialized     = 0;
 
 /* Our memory failure callback sets the error message to be passed back
@@ -147,6 +150,7 @@ lt__alloc_die_callback (void)
   LT__SETERROR (NO_MEMORY);
 }
 
+#ifdef HAVE_LIBDLLOADER
 /* This function is called to initialise each preloaded module loader,
    and hook it into the list of loaders to be used when attempting to
    dlopen an application module.  */
@@ -155,6 +159,7 @@ loader_init_callback (lt_dlhandle handle
 {
   return loader_init (lt_dlsym (handle, "get_vtable"), 0);
 }
+#endif /* HAVE_LIBDLLOADER */
 
 static int
 loader_init (lt_get_vtable *vtable_func, lt_user_data data)

Reply via email to