This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[Patch, MIPS] Fix unused function warning
- From: "Steve Ellcey " <sellcey at imgtec dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Wed, 10 Dec 2014 12:41:00 -0800
- Subject: [Patch, MIPS] Fix unused function warning
- Authentication-results: sourceware.org; auth=none
Here is another patch for an unused function warning during the glibc mips
build.
warning-nop.c:39:1: error: 'nop' defined but not used [-Werror=unused-function]
nop (void)
^
cc1: all warnings being treated as errors
I added a used attribute to the nop function to get rid of the warning.
OK to checkin?
Steve Ellcey
sellcey@imgtec.com
2014-12-10 Steve Ellcey <sellcey@imgtec.com>
* debug/warning-nop.c: Add used atrribute.
diff --git a/debug/warning-nop.c b/debug/warning-nop.c
index 2a16f27..2064310 100644
--- a/debug/warning-nop.c
+++ b/debug/warning-nop.c
@@ -36,6 +36,7 @@
#include <sys/cdefs.h>
static void
+__attribute__ ((used))
nop (void)
{
}