]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* btest.c (test1, test2, test3, test4): Add the unused attribute.
authorIan Lance Taylor <iant@google.com>
Tue, 18 Sep 2012 17:10:01 +0000 (17:10 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 18 Sep 2012 17:10:01 +0000 (17:10 +0000)
From-SVN: r191440

libbacktrace/ChangeLog
libbacktrace/btest.c

index 5e89df42ce0c095c2a4b5c9a3a42a674321ac632..e7c3bcaa15b23a3edfc31ac096dda5ec467bc1d7 100644 (file)
@@ -1,3 +1,7 @@
+2012-09-18  Ian Lance Taylor  <iant@google.com>
+
+       * btest.c (test1, test2, test3, test4): Add the unused attribute.
+
 2012-09-18  Ian Lance Taylor  <iant@google.com>
 
        * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
index e36d3a24e5b5935b9fd08cb92a897e72942424f2..df286dbeefe44e5866a145a75e0cd187c1ccb790 100644 (file)
@@ -269,7 +269,7 @@ error_callback_three (void *vdata, const char *msg, int errnum)
 
 /* Test the backtrace function with non-inlined functions.  */
 
-static int test1 (void) __attribute__ ((noinline));
+static int test1 (void) __attribute__ ((noinline, unused));
 static int f2 (int) __attribute__ ((noinline));
 static int f3 (int, int) __attribute__ ((noinline));
 
@@ -323,7 +323,7 @@ f3 (int f1line, int f2line)
 
 /* Test the backtrace function with inlined functions.  */
 
-static inline int test2 (void) __attribute__ ((always_inline));
+static inline int test2 (void) __attribute__ ((always_inline, unused));
 static inline int f12 (int) __attribute__ ((always_inline));
 static inline int f13 (int, int) __attribute__ ((always_inline));
 
@@ -375,7 +375,7 @@ f13 (int f1line, int f2line)
 
 /* Test the backtrace_simple function with non-inlined functions.  */
 
-static int test3 (void) __attribute__ ((noinline));
+static int test3 (void) __attribute__ ((noinline, unused));
 static int f22 (int) __attribute__ ((noinline));
 static int f23 (int, int) __attribute__ ((noinline));
 
@@ -524,7 +524,7 @@ f23 (int f1line, int f2line)
 
 /* Test the backtrace_simple function with inlined functions.  */
 
-static inline int test4 (void) __attribute__ ((always_inline));
+static inline int test4 (void) __attribute__ ((always_inline, unused));
 static inline int f32 (int) __attribute__ ((always_inline));
 static inline int f33 (int, int) __attribute__ ((always_inline));