Commit 121eb024 by Sam Thursfield Committed by Ian Lance Taylor

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
parent edfcd7e3
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> 2017-01-01 Jakub Jelinek <jakub@redhat.com>
Update copyright years. Update copyright years.
......
...@@ -616,7 +616,7 @@ f33 (int f1line, int f2line) ...@@ -616,7 +616,7 @@ f33 (int f1line, int f2line)
return failures; return failures;
} }
#if BACKTRACE_SUPPORTS_DATA static int test5 (void) __attribute__ ((unused));
int global = 1; int global = 1;
...@@ -686,8 +686,6 @@ test5 (void) ...@@ -686,8 +686,6 @@ test5 (void)
return failures; return failures;
} }
#endif /* BACKTRACE_SUPPORTS_DATA */
static void static void
error_callback_create (void *data ATTRIBUTE_UNUSED, const char *msg, error_callback_create (void *data ATTRIBUTE_UNUSED, const char *msg,
int errnum) int errnum)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment