Subject: bug#18172: Ъompiler warning libltdl/ltdl.c:818 LT__UNUSED

From: Дилян Палаузов<[email-masked]>
Date: Sat, 02 Aug 2014 11:33:19 +0200

Hello,

please update libltdl/ltdl.c as follows, so that gcc 4.9.1 and 4.8.3 do 
not emit warnings:

   CC       libltdlc_la-ltdl.lo
ltdl.c: In function ‘load_deplibs’:
ltdl.c:818:53: warning: unused parameter ‘deplibs’ [-Wunused-parameter]
  load_deplibs (lt_dlhandle handle, char * LT__UNUSED deplibs)
                                                      ^
Със здраве
   Дилян

diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c
index 098f9a6..7db522b 100644
--- a/libltdl/ltdl.c
+++ b/libltdl/ltdl.c
@@ -815,7 +815,7 @@ find_handle (const char *search_path, const char 
*base_name,

  #if !defined LTDL_DLOPEN_DEPLIBS
  static int
-load_deplibs (lt_dlhandle handle, char * LT__UNUSED deplibs)
+load_deplibs (lt_dlhandle handle, char * deplibs LT__UNUSED)
  {
    handle->depcount = 0;
    return 0;