summaryrefslogtreecommitdiff
path: root/ldso/libdl
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-24 20:39:51 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-24 20:39:51 +0000
commit4a8caed2ad95e0c07f57051c39fc7bbe81c548d7 (patch)
treee5712ffa91495c85104e829e31306697897bf839 /ldso/libdl
parent5c86faa2e23a489b53088ee71f20e08f5fac561c (diff)
Silence a warning
Diffstat (limited to 'ldso/libdl')
-rw-r--r--ldso/libdl/dlib.c2
-rw-r--r--ldso/libdl/libdl.c2
2 files changed, 2 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