From 71c6319e26b05f69c334f87a487d9db00a566320 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 11 Sep 2019 21:43:25 +0200 Subject: [PATCH] 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. --- src/common/common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/common.h b/src/common/common.h index 3c16ca00d..6299329a8 100644 --- a/src/common/common.h +++ b/src/common/common.h @@ -40,6 +40,10 @@ # include #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 #include