mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
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:
parent
f48fb8a720
commit
8366be3b51
3
changes/bug26272
Normal file
3
changes/bug26272
Normal 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.
|
@ -19,7 +19,9 @@
|
|||||||
#include "compress_zstd.h"
|
#include "compress_zstd.h"
|
||||||
|
|
||||||
#ifdef HAVE_ZSTD
|
#ifdef HAVE_ZSTD
|
||||||
|
DISABLE_GCC_WARNING(unused-const-variable)
|
||||||
#include <zstd.h>
|
#include <zstd.h>
|
||||||
|
ENABLE_GCC_WARNING(unused-const-variable)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** Total number of bytes allocated for Zstandard state. */
|
/** Total number of bytes allocated for Zstandard state. */
|
||||||
|
Loading…
Reference in New Issue
Block a user