diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-18 17:10:01 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-18 17:10:01 +0000 |
commit | d48b4b141d4e420c86aafb9f746b397bc04cfaa9 (patch) | |
tree | 2d7b1204527b39529cd2d9de8e810af0426ed99d /libbacktrace | |
parent | 249b4e859d1d588f3c8b940d1145015ce598d261 (diff) | |
download | gcc-d48b4b141d4e420c86aafb9f746b397bc04cfaa9.tar.gz |
* btest.c (test1, test2, test3, test4): Add the unused attribute.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191440 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace')
-rw-r--r-- | libbacktrace/ChangeLog | 4 | ||||
-rw-r--r-- | libbacktrace/btest.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 5e89df42ce0..e7c3bcaa15b 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,5 +1,9 @@ 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. 2012-09-18 Ian Lance Taylor <iant@google.com> diff --git a/libbacktrace/btest.c b/libbacktrace/btest.c index e36d3a24e5b..df286dbeefe 100644 --- a/libbacktrace/btest.c +++ b/libbacktrace/btest.c @@ -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)); |