mirror of
https://github.com/fmtlib/fmt.git
synced 2025-10-02 01:20:55 +02:00
Suppress an unused argument warning
This commit is contained in:
@@ -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>()
|
||||||
|
Reference in New Issue
Block a user