From 6378959cedf7506e613d0c07e5e577cb36b95aff Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 17 Feb 2003 14:16:14 +0000 Subject: 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 --- include/features.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/features.h b/include/features.h index d00222125..315c323a1 100644 --- a/include/features.h +++ b/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) -- cgit v1.2.3