Browse Source

Patch from Stefan Allius:

    I patched the link_warning macro in features.h to fix warnings like:
    locale.c:358: warning: `__evoke_link_warning_localeconv' defined but not used
Eric Andersen 22 years ago
parent
commit
6378959ced
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/features.h

+ 1 - 1
include/features.h

@@ -389,7 +389,7 @@ uClibc was built without large file support enabled.
 #  define link_warning(symbol, msg)					      \
 	asm (".section "  ".gnu.warning." #symbol  "\n\t.previous");	      \
 	    static const char __evoke_link_warning_##symbol[]		      \
-	    __attribute__ ((section (".gnu.warning." #symbol "\n\t#"))) = msg;
+	    __attribute__ ((unused, section (".gnu.warning." #symbol "\n\t#"))) = msg;
 #else /* !defined __HAVE_ELF__ */
 #  define strong_alias(name, aliasname) _strong_alias (name, aliasname)
 #  define weak_alias(name, aliasname) _strong_alias (name, aliasname)