diff --git a/src/unix/secretstore.cpp b/src/unix/secretstore.cpp index f18d5a0e6d..e72ce36248 100644 --- a/src/unix/secretstore.cpp +++ b/src/unix/secretstore.cpp @@ -235,6 +235,11 @@ private: // helper function to make changing the code later simpler. static SecretSchema* GetSchema() { + // SecretSchema struct has some "reserved" fields in it which we don't + // want to initialize, but this results in this warning if it's + // enabled, so just suppress it here. + wxGCC_WARNING_SUPPRESS(missing-field-initializers) + static SecretSchema s_schema = { "org.freedesktop.Secret.Generic", @@ -246,6 +251,8 @@ private: } }; + wxGCC_WARNING_RESTORE(missing-field-initializers) + return &s_schema; }