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