From 99744f8f8f2154bdf42fbf2d8cd6a7fa084cb2fb Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 28 Nov 2018 12:52:41 -0800 Subject: [PATCH] Suppress unfixable warning --- include/fmt/format.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fmt/format.h b/include/fmt/format.h index b1a71f9f..f56a56bf 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -69,6 +69,10 @@ // Disable the warning about implicit conversions that may change the sign of // an integer; silencing it otherwise would require many explicit casts. # pragma GCC diagnostic ignored "-Wsign-conversion" + +// Disable the warning about nonliteral format strings because we construct +// them dynamically when falling back to snprintf for FP formatting. +# pragma GCC diagnostic ignored "-Wformat-nonliteral" #endif # if FMT_CLANG_VERSION