]> git.ipfire.org Git - thirdparty/zstd.git/commit
support -Werror=format-security 588/head
authorPádraig Brady <P@draigBrady.com>
Mon, 6 Mar 2017 03:36:56 +0000 (19:36 -0800)
committerPádraig Brady <P@draigBrady.com>
Mon, 6 Mar 2017 03:42:51 +0000 (19:42 -0800)
commit38a3428b37a3b21d2a699b8e1db1f10af57588b4
tree8cdc49ab1a91c442594cb79ae607abbc0247b4d5
parent5d801278dc3e9ed3e89a5a45ec60f9464ab0bd55
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...);
     ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
.buckconfig
contrib/pzstd/Pzstd.cpp
contrib/pzstd/Pzstd.h