aboutsummaryrefslogtreecommitdiff
path: root/src/lib/compress
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-30 08:17:25 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-30 08:17:25 -0400
commit5823e62fa2a83fb1f7a27c82be930749e3a4782d (patch)
treec7ed87098c5b8dc27afabf0a306ef30dc40d6e7c /src/lib/compress
parent9ae35975402a823a420cd5efb81a1c3a76f6c4d6 (diff)
parentd102e9c2e4ab5dfca0c03f7b4e27431d069338fd (diff)
downloadtor-5823e62fa2a83fb1f7a27c82be930749e3a4782d.tar.gz
tor-5823e62fa2a83fb1f7a27c82be930749e3a4782d.zip
Merge branch 'maint-0.3.4'
Diffstat (limited to 'src/lib/compress')
-rw-r--r--src/lib/compress/compress_zstd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/compress/compress_zstd.c b/src/lib/compress/compress_zstd.c
index 0a71fed4b8..fe88d4a544 100644
--- a/src/lib/compress/compress_zstd.c
+++ b/src/lib/compress/compress_zstd.c
@@ -28,10 +28,14 @@
#endif
#ifdef HAVE_ZSTD
+#ifdef HAVE_CFLAG_WUNUSED_CONST_VARIABLE
DISABLE_GCC_WARNING(unused-const-variable)
+#endif
#include <zstd.h>
+#ifdef HAVE_CFLAG_WUNUSED_CONST_VARIABLE
ENABLE_GCC_WARNING(unused-const-variable)
#endif
+#endif
/** Total number of bytes allocated for Zstandard state. */
static atomic_counter_t total_zstd_allocation;