From: Petr Machata Date: Sat, 10 Jan 2009 03:41:50 +0000 (+0100) Subject: Reintroduce __attribute__((unused)) for free_key_mem. X-Git-Tag: elfutils-0.142~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e7f6f695bb91f1885e9ec0d8892533df7e3bcf8;p=thirdparty%2Felfutils.git Reintroduce __attribute__((unused)) for free_key_mem. --- diff --git a/libdw/dwarf_error.c b/libdw/dwarf_error.c index fe9166414..ee1e7faab 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;