Quiet gcc and clang warnings

gcc ignores the c++17 standard advisory in some versions and simply
doesn't warn about unused private variables.  Clang and MSVC do warn
about unused private variables and do follow the standard
This commit is contained in:
Seth Hillbrand 2022-06-22 08:55:44 -07:00
parent 32c5a4d1ea
commit e1ee1ef7e5
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ 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__
#ifndef __clang__
// [[maybe_unused]] attribute is ignored by Gcc but generates a warning.
wxLocale* m_wxLocale;
#else