aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-12 08:18:56 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-12 08:18:56 -0400
commitb86c2c178d0545b7afeccfd2ac88ba8ea555d233 (patch)
treed1cb70651e10f2e65a0234c916c22b9dcc8edf27
parent086459091974830a99e97ec9a72fa3b8c8866a22 (diff)
parentd84581a3e677a6905125b619c590488c12a36ae8 (diff)
downloadtor-b86c2c178d0545b7afeccfd2ac88ba8ea555d233.tar.gz
tor-b86c2c178d0545b7afeccfd2ac88ba8ea555d233.zip
Merge branch 'maint-0.3.1' into release-0.3.1
-rw-r--r--changes/bug262723
-rw-r--r--src/common/compress_zstd.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/changes/bug26272 b/changes/bug26272
new file mode 100644
index 0000000000..9dcf42f0e1
--- /dev/null
+++ b/changes/bug26272
@@ -0,0 +1,3 @@
+ o Minor bugfixes (compilation):
+ - Silence unused-const-variable warnings in zstd.h on some gcc versions.
+ Fixes bug 26272; bugfix on 0.3.1.1-alpha.
diff --git a/src/common/compress_zstd.c b/src/common/compress_zstd.c
index 63e92ed22d..11edfffa0e 100644
--- a/src/common/compress_zstd.c
+++ b/src/common/compress_zstd.c
@@ -19,7 +19,9 @@
#include "compress_zstd.h"
#ifdef HAVE_ZSTD
+DISABLE_GCC_WARNING(unused-const-variable)
#include <zstd.h>
+ENABLE_GCC_WARNING(unused-const-variable)
#endif
/** Total number of bytes allocated for Zstandard state. */