From 4a8caed2ad95e0c07f57051c39fc7bbe81c548d7 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 24 Apr 2001 20:39:51 +0000 Subject: Silence a warning --- ldso/libdl/dlib.c | 2 +- ldso/libdl/libdl.c | 2 +- ldso/util/ldd.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ldso/libdl/dlib.c b/ldso/libdl/dlib.c index 545b6745f..5fd411505 100644 --- a/ldso/libdl/dlib.c +++ b/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 diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index 545b6745f..5fd411505 100644 --- a/ldso/libdl/libdl.c +++ b/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 diff --git a/ldso/util/ldd.c b/ldso/util/ldd.c index 62c479ba3..640da41f0 100644 --- a/ldso/util/ldd.c +++ b/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))); -- cgit v1.2.3