libtool-patches
[Top][All Lists]
Advanced

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

LT__UNUSED goes before parameter name


From: Ralf Wildenhues
Subject: LT__UNUSED goes before parameter name
Date: Mon, 4 Sep 2006 19:43:35 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

Applied to HEAD to fix build failure with older g++ (on MinGW).

Cheers,
Ralf

        * libltdl/ltdl.c: Move LT__UNUSED before parameter name, for g++
        3.2.3 (on MinGW).
        * libltdl/loaders/dld_link.c, libltdl/loaders/dlopen.c,
        libltdl/loaders/load_add_on.c, libltdl/loaders/loadlibrary.c,
        libltdl/loaders/preopen.c, libltdl/loaders/shl_load.c: Likewise.

Index: libltdl/ltdl.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/ltdl.c,v
retrieving revision 1.243
diff -u -r1.243 ltdl.c
--- libltdl/ltdl.c      4 Sep 2006 17:27:26 -0000       1.243
+++ libltdl/ltdl.c      4 Sep 2006 17:29:42 -0000
@@ -689,7 +689,7 @@
 }
 
 static int
-find_handle_callback (char *filename, void *data, void *ignored LT__UNUSED)
+find_handle_callback (char *filename, void *data, void * LT__UNUSED ignored)
 {
   lt_dlhandle  *handle         = (lt_dlhandle *) data;
   int          notfound        = access (filename, R_OK);
@@ -724,7 +724,7 @@
 
 #if !defined(LTDL_DLOPEN_DEPLIBS)
 static int
-load_deplibs (lt_dlhandle handle, char *deplibs LT__UNUSED)
+load_deplibs (lt_dlhandle handle, char * LT__UNUSED deplibs)
 {
   ((lt__handle *) handle)->depcount = 0;
   return 0;
Index: libltdl/loaders/dld_link.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/loaders/dld_link.c,v
retrieving revision 1.6
diff -u -r1.6 dld_link.c
--- libltdl/loaders/dld_link.c  4 Sep 2006 17:27:26 -0000       1.6
+++ libltdl/loaders/dld_link.c  4 Sep 2006 17:29:42 -0000
@@ -93,7 +93,7 @@
    loader.  Returns an opaque representation of the newly opened
    module for processing with this loader's other vtable functions.  */
 static lt_module
-vm_open (lt_user_data loader_data LT__UNUSED, const char *filename)
+vm_open (lt_user_data LT__UNUSED loader_data, const char *filename)
 {
   lt_module module = lt__strdup (filename);
 
@@ -109,7 +109,7 @@
 /* A function called through the vtable when a particular module
    should be unloaded.  */
 static int
-vm_close (lt_user_data loader_data LT__UNUSED, lt_module module)
+vm_close (lt_user_data LT__UNUSED loader_data, lt_module module)
 {
   int errors = 0;
 
@@ -129,7 +129,7 @@
 /* A function called through the vtable to get the address of
    a symbol loaded from a particular module.  */
 static void *
-vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module LT__UNUSED,
+vm_sym (lt_user_data LT__UNUSED loader_data, lt_module LT__UNUSED module,
        const char *name)
 {
   void *address = dld_get_func (name);
Index: libltdl/loaders/dlopen.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/loaders/dlopen.c,v
retrieving revision 1.7
diff -u -r1.7 dlopen.c
--- libltdl/loaders/dlopen.c    4 Sep 2006 17:27:26 -0000       1.7
+++ libltdl/loaders/dlopen.c    4 Sep 2006 17:29:42 -0000
@@ -134,7 +134,7 @@
    loader.  Returns an opaque representation of the newly opened
    module for processing with this loader's other vtable functions.  */
 static lt_module
-vm_open (lt_user_data loader_data LT__UNUSED, const char *filename)
+vm_open (lt_user_data LT__UNUSED loader_data, const char *filename)
 {
   lt_module module = dlopen (filename, LT_LAZY_OR_NOW);
 
@@ -150,7 +150,7 @@
 /* A function called through the vtable when a particular module
    should be unloaded.  */
 static int
-vm_close (lt_user_data loader_data LT__UNUSED, lt_module module)
+vm_close (lt_user_data LT__UNUSED loader_data, lt_module module)
 {
   int errors = 0;
 
@@ -167,7 +167,7 @@
 /* A function called through the vtable to get the address of
    a symbol loaded from a particular module.  */
 static void *
-vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module, const char 
*name)
+vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char 
*name)
 {
   void *address = dlsym (module, name);
 
Index: libltdl/loaders/load_add_on.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/loaders/load_add_on.c,v
retrieving revision 1.6
diff -u -r1.6 load_add_on.c
--- libltdl/loaders/load_add_on.c       4 Sep 2006 17:27:26 -0000       1.6
+++ libltdl/loaders/load_add_on.c       4 Sep 2006 17:29:42 -0000
@@ -91,7 +91,7 @@
    loader.  Returns an opaque representation of the newly opened
    module for processing with this loader's other vtable functions.  */
 static lt_module
-vm_open (lt_user_data loader_data LT__UNUSED, const char *filename)
+vm_open (lt_user_data LT__UNUSED loader_data, const char *filename)
 {
   image_id image = 0;
 
@@ -120,7 +120,7 @@
 /* A function called through the vtable when a particular module
    should be unloaded.  */
 static int
-vm_close (lt_user_data loader_data LT__UNUSED, lt_module module)
+vm_close (lt_user_data LT__UNUSED loader_data, lt_module module)
 {
   int errors = 0;
 
@@ -137,7 +137,7 @@
 /* A function called through the vtable to get the address of
    a symbol loaded from a particular module.  */
 static void *
-vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module, const char 
*name)
+vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char 
*name)
 {
   void *address = 0;
   image_id image = (image_id) module;
Index: libltdl/loaders/loadlibrary.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/loaders/loadlibrary.c,v
retrieving revision 1.12
diff -u -r1.12 loadlibrary.c
--- libltdl/loaders/loadlibrary.c       4 Sep 2006 17:27:26 -0000       1.12
+++ libltdl/loaders/loadlibrary.c       4 Sep 2006 17:29:43 -0000
@@ -98,7 +98,7 @@
    loader.  Returns an opaque representation of the newly opened
    module for processing with this loader's other vtable functions.  */
 static lt_module
-vm_open (lt_user_data loader_data LT__UNUSED, const char *filename)
+vm_open (lt_user_data LT__UNUSED loader_data, const char *filename)
 {
   lt_module    module     = 0;
   char         *ext;
@@ -200,7 +200,7 @@
 /* A function called through the vtable when a particular module
    should be unloaded.  */
 static int
-vm_close (lt_user_data loader_data LT__UNUSED, lt_module module)
+vm_close (lt_user_data LT__UNUSED loader_data, lt_module module)
 {
   int errors = 0;
 
@@ -217,7 +217,7 @@
 /* A function called through the vtable to get the address of
    a symbol loaded from a particular module.  */
 static void *
-vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module, const char 
*name)
+vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char 
*name)
 {
   void *address = (void *) GetProcAddress ((HMODULE) module, name);
 
Index: libltdl/loaders/preopen.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/loaders/preopen.c,v
retrieving revision 1.10
diff -u -r1.10 preopen.c
--- libltdl/loaders/preopen.c   4 Sep 2006 17:27:26 -0000       1.10
+++ libltdl/loaders/preopen.c   4 Sep 2006 17:29:43 -0000
@@ -110,7 +110,7 @@
 
 /* A function called through the vtable to initialise this loader.  */
 static int
-vl_init (lt_user_data loader_data LT__UNUSED)
+vl_init (lt_user_data LT__UNUSED loader_data)
 {
   int errors = 0;
 
@@ -127,7 +127,7 @@
 /* A function called through the vtable when this loader is no
    longer needed by the application.  */
 static int
-vl_exit (lt_user_data loader_data LT__UNUSED)
+vl_exit (lt_user_data LT__UNUSED loader_data)
 {
   free_symlists ();
   return 0;
@@ -138,7 +138,7 @@
    loader.  Returns an opaque representation of the newly opened
    module for processing with this loader's other vtable functions.  */
 static lt_module
-vm_open (lt_user_data loader_data LT__UNUSED, const char *filename)
+vm_open (lt_user_data LT__UNUSED loader_data, const char *filename)
 {
   symlist_chain *lists;
   lt_module     module = 0;
@@ -190,7 +190,7 @@
 /* A function called through the vtable when a particular module
    should be unloaded.  */
 static int
-vm_close (lt_user_data loader_data LT__UNUSED, lt_module module)
+vm_close (lt_user_data LT__UNUSED loader_data, lt_module module)
 {
   /* Just to silence gcc -Wall */
   module = 0;
@@ -201,7 +201,7 @@
 /* A function called through the vtable to get the address of
    a symbol loaded from a particular module.  */
 static void *
-vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module, const char 
*name)
+vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char 
*name)
 {
   lt_dlsymlist        *symbol = (lt_dlsymlist*) module;
 
Index: libltdl/loaders/shl_load.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/loaders/shl_load.c,v
retrieving revision 1.7
diff -u -r1.7 shl_load.c
--- libltdl/loaders/shl_load.c  4 Sep 2006 17:27:26 -0000       1.7
+++ libltdl/loaders/shl_load.c  4 Sep 2006 17:29:43 -0000
@@ -134,7 +134,7 @@
    loader.  Returns an opaque representation of the newly opened
    module for processing with this loader's other vtable functions.  */
 static lt_module
-vm_open (lt_user_data loader_data LT__UNUSED, const char *filename)
+vm_open (lt_user_data LT__UNUSED loader_data, const char *filename)
 {
   static shl_t self = (shl_t) 0;
   lt_module module = shl_load (filename, LT_BIND_FLAGS, 0L);
@@ -169,7 +169,7 @@
 /* A function called through the vtable when a particular module
    should be unloaded.  */
 static int
-vm_close (lt_user_data loader_data LT__UNUSED, lt_module module)
+vm_close (lt_user_data LT__UNUSED loader_data, lt_module module)
 {
   int errors = 0;
 
@@ -186,7 +186,7 @@
 /* A function called through the vtable to get the address of
    a symbol loaded from a particular module.  */
 static void *
-vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module, const char 
*name)
+vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char 
*name)
 {
   void *address = 0;
 




reply via email to

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