diff options
author | Petr Machata <pmachata@redhat.com> | 2009-01-10 04:41:50 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2009-01-10 04:41:50 +0100 |
commit | 5e7f6f695bb91f1885e9ec0d8892533df7e3bcf8 (patch) | |
tree | 4fb188703525c1528e4e3be86fbfa9d0bd1692d7 | |
parent | a4b1a95434b90ed147e33363d92e24a035b6b775 (diff) | |
download | elfutils-5e7f6f695bb91f1885e9ec0d8892533df7e3bcf8.tar.gz |
Reintroduce __attribute__((unused)) for free_key_mem.
-rw-r--r-- | libdw/dwarf_error.c | 5 |
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; |