build fmt without support for user-defined literals

MKVToolNix doesn't use them, has no plans for supporting them, and
using them causes warnings with -Wpedantic in current versions of gcc.
This commit is contained in:
Moritz Bunkus 2019-09-11 21:43:25 +02:00
parent 651b9b7edb
commit 71c6319e26
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -40,6 +40,10 @@
# include <inttypes.h> # include <inttypes.h>
#endif // HAVE_INTTYPES_H #endif // HAVE_INTTYPES_H
// Don't support user-defined literals in fmt as they aren't used by
// MKVToolNix and produce a compiler warning in -Wpedantic
#define FMT_USE_USER_DEFINED_LITERALS 0
#include <fmt/format.h> #include <fmt/format.h>
#include <fmt/ostream.h> #include <fmt/ostream.h>