From e1ee1ef7e587f99d1d51c8fd8e30998ddac615fe Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 22 Jun 2022 08:55:44 -0700 Subject: [PATCH] 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 --- include/locale_io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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