This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, MIPS] Fix unused function warning


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)
 {
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]