Suppress an unused argument warning

This commit is contained in:
Victor Zverovich
2025-09-28 19:45:41 -04:00
parent 17be91c079
commit 5f66e07cb0

View File

@@ -1595,6 +1595,7 @@ class get_locale {
public: public:
inline get_locale(bool localized, locale_ref loc) : has_locale_(localized) { inline get_locale(bool localized, locale_ref loc) : has_locale_(localized) {
if (!localized) return; if (!localized) return;
ignore_unused(loc);
::new (&locale_) std::locale( ::new (&locale_) std::locale(
#if FMT_USE_LOCALE #if FMT_USE_LOCALE
loc.template get<std::locale>() loc.template get<std::locale>()