aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbacktrace/ChangeLog4
-rw-r--r--libbacktrace/ztest.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog
index 89b690d..0fa4bbb 100644
--- a/libbacktrace/ChangeLog
+++ b/libbacktrace/ChangeLog
@@ -1,5 +1,9 @@
2020-05-13 Ian Lance Taylor <iant@golang.org>
+ * ztest.c (test_large): Mark state ATTRIBUTE_UNUSED.
+
+2020-05-13 Ian Lance Taylor <iant@golang.org>
+
PR go/95061
* posix.c (backtrace_open): Treat EACCESS like ENOENT.
diff --git a/libbacktrace/ztest.c b/libbacktrace/ztest.c
index 2663c90..3947670 100644
--- a/libbacktrace/ztest.c
+++ b/libbacktrace/ztest.c
@@ -294,7 +294,7 @@ average_time (const size_t *times, size_t trials)
/* Test a larger text, if available. */
static void
-test_large (struct backtrace_state *state)
+test_large (struct backtrace_state *state ATTRIBUTE_UNUSED)
{
#ifdef HAVE_ZLIB
unsigned char *orig_buf;