aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-03-08 14:21:21 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-03-08 14:21:21 +0000
commit121eb024c878d3b2474a3715d5250227af9613f7 (patch)
treee273fe8168f1c6ece68f71ee88e74b4a48421f2c /libbacktrace
parentedfcd7e3d471b9dde2d9a84490a850d2f850f381 (diff)
downloadgcc-121eb024c878d3b2474a3715d5250227af9613f7.zip
gcc-121eb024c878d3b2474a3715d5250227af9613f7.tar.gz
gcc-121eb024c878d3b2474a3715d5250227af9613f7.tar.bz2
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
Diffstat (limited to 'libbacktrace')
-rw-r--r--libbacktrace/ChangeLog5
-rw-r--r--libbacktrace/btest.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog
index 6483285..25cd921 100644
--- a/libbacktrace/ChangeLog
+++ b/libbacktrace/ChangeLog
@@ -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.
diff --git a/libbacktrace/btest.c b/libbacktrace/btest.c
index e28a3d83..92cb325 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)