Fix a warning

This commit is contained in:
Victor Zverovich
2025-11-03 13:30:55 -10:00
parent 23c13b3060
commit 5ac44cd128

View File

@@ -927,7 +927,7 @@ class locale_ref {
template <typename Locale, FMT_ENABLE_IF(sizeof(Locale::collate) != 0)>
locale_ref(const Locale& loc) : locale_(&loc) {
// Check if std::isalpha is found via ADL to reduce the chance of misuse.
isalpha('x', loc);
detail::ignore_unused(isalpha('x', loc));
}
inline explicit operator bool() const noexcept { return locale_ != nullptr; }