Silence unused-const-variable warnings in zstd.h on some gcc versions

Fixes bug 26272; bugfix on 0.3.1.1-alpha.
This commit is contained in:
teor 2018-06-02 14:08:01 -07:00
parent f48fb8a720
commit 8366be3b51
No known key found for this signature in database
GPG Key ID: 740D9E39025272A2
2 changed files with 5 additions and 0 deletions

3
changes/bug26272 Normal file
View File

@ -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.

View 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. */