summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2009-01-10 04:41:50 +0100
committerPetr Machata <pmachata@redhat.com>2009-01-10 04:41:50 +0100
commit5e7f6f695bb91f1885e9ec0d8892533df7e3bcf8 (patch)
tree4fb188703525c1528e4e3be86fbfa9d0bd1692d7
parenta4b1a95434b90ed147e33363d92e24a035b6b775 (diff)
downloadelfutils-5e7f6f695bb91f1885e9ec0d8892533df7e3bcf8.tar.gz
Reintroduce __attribute__((unused)) for free_key_mem.
-rw-r--r--libdw/dwarf_error.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libdw/dwarf_error.c b/libdw/dwarf_error.c
index fe916641..ee1e7faa 100644
--- a/libdw/dwarf_error.c
+++ b/libdw/dwarf_error.c
@@ -73,7 +73,7 @@ once_define (static, once);
/* The initialization and destruction functions. */
static void init (void);
-static void free_key_mem (void *mem);
+static void __attribute__ ((unused)) free_key_mem (void *mem);
#endif /* TLS */
@@ -207,9 +207,6 @@ free_key_mem (void *mem __attribute__ ((unused)))
static void
init (void)
{
- // XXX Screw you, gcc4, the unused function attribute does not work.
- __asm ("" :: "r" (free_key_mem));
-
if (key_create (&key, free_key_mem) == 0)
/* Creating the key succeeded. */
threaded = true;