summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-02-17 14:16:14 +0000
committerEric Andersen <andersen@codepoet.org>2003-02-17 14:16:14 +0000
commit6378959cedf7506e613d0c07e5e577cb36b95aff (patch)
tree1d24e6e93e8262fa7cebc28467f08ba77cd1df1d
parentb2eb218fc338067d292f7e26fd4a176f27fa036b (diff)
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
-rw-r--r--include/features.h2
1 files changed, 1 insertions, 1 deletions
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)