libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

avoid compiler warning in ltdl


From: Eric Blake
Subject: avoid compiler warning in ltdl
Date: Sat, 22 Jul 2006 14:33:29 -0600
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

-----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  <address@hidden>

        * 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             address@hidden
-----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

[Prev in Thread] Current Thread [Next in Thread]