From d8d695731db39a03010cc0051c6fbe939959bbf6 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 18 Jan 2012 09:12:47 +0100 Subject: 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 --- libc/sysdeps/linux/common/stubs.c | 1 + librt/rt_stubs.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libc/sysdeps/linux/common/stubs.c b/libc/sysdeps/linux/common/stubs.c index 06356afa4..02cd72495 100644 --- a/libc/sysdeps/linux/common/stubs.c +++ b/libc/sysdeps/linux/common/stubs.c @@ -12,6 +12,7 @@ #ifdef __UCLIBC_HAS_STUBS__ +static int enosys_stub(void) __attribute_used__; static int enosys_stub(void) { __set_errno(ENOSYS); diff --git a/librt/rt_stubs.c b/librt/rt_stubs.c index b2c09dea9..a2b84e62a 100644 --- a/librt/rt_stubs.c +++ b/librt/rt_stubs.c @@ -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); -- cgit v1.2.3