btest.c (test5): Replace #ifdef guard with 'unused' attribute to fix compile warning when...

* btest.c (test5): Replace #ifdef guard with 'unused' attribute
       to fix compile warning when BACKTRACE_SUPPORTED isn't defined.

From-SVN: r245977
This commit is contained in:
Sam Thursfield 2017-03-08 14:21:21 +00:00 committed by Ian Lance Taylor
parent edfcd7e3d4
commit 121eb024c8
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
* btest.c (test5): Replace #ifdef guard with 'unused' attribute
to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
2017-01-01 Jakub Jelinek <jakub@redhat.com>
Update copyright years.

View File

@ -616,7 +616,7 @@ f33 (int f1line, int f2line)
return failures;
}
#if BACKTRACE_SUPPORTS_DATA
static int test5 (void) __attribute__ ((unused));
int global = 1;
@ -686,8 +686,6 @@ test5 (void)
return failures;
}
#endif /* BACKTRACE_SUPPORTS_DATA */
static void
error_callback_create (void *data ATTRIBUTE_UNUSED, const char *msg,
int errnum)