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.
+2006-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * 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.
+
2006-09-04 George Bosilca <bosilca@cs.utk.edu>
and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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);
/* 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;
/* 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);
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);
/* 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;
/* 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);
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;
/* 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;
/* 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;
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;
/* 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;
/* 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);
/* 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;
/* 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;
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;
/* 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;
/* 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;
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);
/* 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;
/* 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;
}
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);
#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;