locale_io.h: fix a compil warning when using gcc.

This commit is contained in:
jean-pierre charras 2022-06-22 11:11:10 +02:00
parent 82b2df67be
commit 4a4d31283d
1 changed files with 5 additions and 0 deletions

View File

@ -50,7 +50,12 @@ private:
// The locale in use before switching to the "C" locale
// (the locale can be set by user, and is not always the system locale)
std::string m_user_locale;
#ifdef __GNUC__
// [[maybe_unused]] attribute is ignored by Gcc but generates a warning.
wxLocale* m_wxLocale;
#else
[[maybe_unused]] wxLocale* m_wxLocale;
#endif
};
#endif