aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2018-06-02 14:08:01 -0700
committerteor <teor2345@gmail.com>2018-06-02 14:11:04 -0700
commit8366be3b517d70a72cbedebaa492b6d7b2d2aab8 (patch)
tree3271ac2c8e59447eecaa43b2c2ec1928c80904dd
parentf48fb8a720c7cca79249248f92e3bc99cee3414d (diff)
downloadtor-8366be3b517d70a72cbedebaa492b6d7b2d2aab8.tar.gz
tor-8366be3b517d70a72cbedebaa492b6d7b2d2aab8.zip
Silence unused-const-variable warnings in zstd.h on some gcc versions
Fixes bug 26272; bugfix on 0.3.1.1-alpha.
-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. */