]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Silence unused-const-variable warnings in zstd.h on some gcc versions
authorteor <teor2345@gmail.com>
Sat, 2 Jun 2018 21:08:01 +0000 (14:08 -0700)
committerteor <teor2345@gmail.com>
Sat, 2 Jun 2018 21:11:04 +0000 (14:11 -0700)
Fixes bug 26272; bugfix on 0.3.1.1-alpha.

changes/bug26272 [new file with mode: 0644]
src/common/compress_zstd.c

diff --git a/changes/bug26272 b/changes/bug26272
new file mode 100644 (file)
index 0000000..9dcf42f
--- /dev/null
@@ -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.
index 63e92ed22da62bc1d11871f5c965a9ebad9173af..11edfffa0e5be4ed047abc182bf72f0fc1ab13fc 100644 (file)
@@ -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. */