diff --git a/include/locale_io.h b/include/locale_io.h index 154c741d63..431830076c 100644 --- a/include/locale_io.h +++ b/include/locale_io.h @@ -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