mirror of
https://github.com/facebook/zstd.git
synced 2025-08-01 09:47:01 +03:00
support -Werror=format-security
Fedora now enables this option by default, resulting in the following build failure: Logging.h: In instantiation of 'void pzstd::Logger::operator()(int, const char*, Args ...) Pzstd.cpp:413:48: required from here Logging.h:46:17: error: format not a string literal and no format arguments [-Werror=format-security] std::fprintf(out_, fmt, args...); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
This commit is contained in:
@ -41,7 +41,7 @@ class SharedState {
|
||||
auto parameters = options.determineParameters();
|
||||
cStreamPool.reset(new ResourcePool<ZSTD_CStream>{
|
||||
[this, parameters]() -> ZSTD_CStream* {
|
||||
this->log(VERBOSE, "Creating new ZSTD_CStream\n");
|
||||
this->log(VERBOSE, "%s\n", "Creating new ZSTD_CStream");
|
||||
auto zcs = ZSTD_createCStream();
|
||||
if (zcs) {
|
||||
auto err = ZSTD_initCStream_advanced(
|
||||
@ -59,7 +59,7 @@ class SharedState {
|
||||
} else {
|
||||
dStreamPool.reset(new ResourcePool<ZSTD_DStream>{
|
||||
[this]() -> ZSTD_DStream* {
|
||||
this->log(VERBOSE, "Creating new ZSTD_DStream\n");
|
||||
this->log(VERBOSE, "%s\n", "Creating new ZSTD_DStream");
|
||||
auto zds = ZSTD_createDStream();
|
||||
if (zds) {
|
||||
auto err = ZSTD_initDStream(zds);
|
||||
|
Reference in New Issue
Block a user