From 2489501c392db51db6f15d1d4e2be81c106ab95b Mon Sep 17 00:00:00 2001 From: Walter Gray Date: Mon, 7 Dec 2020 22:20:29 -0800 Subject: [PATCH] fix gcc issue --- test/enforce-compiletime-test.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/enforce-compiletime-test.cc b/test/enforce-compiletime-test.cc index 6ae06b96..4b2e62b8 100644 --- a/test/enforce-compiletime-test.cc +++ b/test/enforce-compiletime-test.cc @@ -27,9 +27,11 @@ // Exercise the API to verify that everything we expect to can compile. void TestFormatApi() { - (void)fmt::format(FMT_STRING("noop")); (void)fmt::format(FMT_STRING("{}"), 42); (void)fmt::format(FMT_STRING(L"{}"), 42); +#if !FMT_GCC_VERSION + (void)fmt::format(FMT_STRING("noop")); +#endif (void)fmt::to_string(42); (void)fmt::to_wstring(42);