stubs: mark stubs as used

Avoids warning from -Wunused-function about the alias target that is
only used at link-time.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
Bernhard Reutner-Fischer
2012-01-18 09:12:47 +01:00
parent 20e4af5469
commit d8d695731d
2 changed files with 2 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
#ifdef __UCLIBC_HAS_STUBS__
static int enosys_stub(void) __attribute_used__;
static int enosys_stub(void)
{
__set_errno(ENOSYS);

View File

@@ -12,6 +12,7 @@
#ifdef __UCLIBC_HAS_STUBS__
static int rt_enosys_stub(void) __attribute_used__;
static int rt_enosys_stub(void)
{
__set_errno(ENOSYS);