]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Reintroduce __attribute__((unused)) for free_key_mem.
authorPetr Machata <pmachata@redhat.com>
Sat, 10 Jan 2009 03:41:50 +0000 (04:41 +0100)
committerPetr Machata <pmachata@redhat.com>
Sat, 10 Jan 2009 03:41:50 +0000 (04:41 +0100)
libdw/dwarf_error.c

index fe9166414aa30d6282a8c3da4cd94e317383dea0..ee1e7faab19e36d3f16ad6fca0e52b5b75aeafae 100644 (file)
@@ -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;