Ver código fonte

Silence a warning

Eric Andersen 24 anos atrás
pai
commit
4a8caed2ad
3 arquivos alterados com 4 adições e 2 exclusões
  1. 1 1
      ldso/libdl/dlib.c
  2. 1 1
      ldso/libdl/libdl.c
  3. 2 0
      ldso/util/ldd.c

+ 1 - 1
ldso/libdl/dlib.c

@@ -485,7 +485,7 @@ static void foobar()
 	_dl_exit(1);
 }
 
-static int foobar1 = (int)foobar; /* Use as pointer */
+static int __attribute__((unused)) foobar1 = (int)foobar; /* Use as pointer */ 
 
 #if 1
 #pragma weak _dl_find_hash = foobar

+ 1 - 1
ldso/libdl/libdl.c

@@ -485,7 +485,7 @@ static void foobar()
 	_dl_exit(1);
 }
 
-static int foobar1 = (int)foobar; /* Use as pointer */
+static int __attribute__((unused)) foobar1 = (int)foobar; /* Use as pointer */ 
 
 #if 1
 #pragma weak _dl_find_hash = foobar

+ 2 - 0
ldso/util/ldd.c

@@ -28,6 +28,8 @@
 #include "../config.h"
 #include "readelf.h"
 
+extern int uselib(const char *library);
+
 #ifdef __GNUC__
 void warn(char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
 void error(char *fmt, ...) __attribute__ ((format (printf, 1, 2)));