From: Sam Thursfield Date: Wed, 8 Mar 2017 14:21:21 +0000 (+0000) Subject: btest.c (test5): Replace #ifdef guard with 'unused' attribute to fix compile warning... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=121eb024c878d3b2474a3715d5250227af9613f7;p=gcc.git 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 --- diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 64832850387..25cd9211980 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,8 @@ +2017-03-08 Sam Thursfield + + * btest.c (test5): Replace #ifdef guard with 'unused' attribute + to fix compile warning when BACKTRACE_SUPPORTED isn't defined. + 2017-01-01 Jakub Jelinek Update copyright years. diff --git a/libbacktrace/btest.c b/libbacktrace/btest.c index e28a3d83d45..92cb325fdce 100644 --- a/libbacktrace/btest.c +++ b/libbacktrace/btest.c @@ -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)