From 5e7f6f695bb91f1885e9ec0d8892533df7e3bcf8 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Sat, 10 Jan 2009 04:41:50 +0100 Subject: [PATCH] Reintroduce __attribute__((unused)) for free_key_mem. --- libdw/dwarf_error.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; -- 2.47.2