From 82c24edcf6098e05b6ac0c9005e861b24d6fddec Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 19 Feb 2019 06:29:27 -1000 Subject: [PATCH] Workaround a bogus Qt Creator warning --- include/fmt/format.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 916e4441..4d91358e 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3644,8 +3644,10 @@ FMT_END_NAMESPACE FMT_CONSTEXPR operator fmt::basic_string_view() const { \ return {s, sizeof(s) / sizeof(char_type) - 1}; \ } \ - }; \ - return str{}; \ + } result; \ + /* Suppress Qt Creator warning about unused operator. */ \ + (void)static_cast>(result); \ + return result; \ }() #if defined(FMT_STRING_ALIAS) && FMT_STRING_ALIAS