Suppress gcc -Wctor-dtor-privacy in wx/strvararg.h

Helper structs declared in this header intentionally define their ctor
as private, avoid gcc complaints about it.
This commit is contained in:
Vadim Zeitlin
2020-08-30 18:14:57 +02:00
parent 2f605badf3
commit 831979ead1

View File

@@ -31,6 +31,10 @@
class WXDLLIMPEXP_FWD_BASE wxCStrData;
class WXDLLIMPEXP_FWD_BASE wxString;
// There are a lot of structs with intentionally private ctors in this file,
// suppress gcc warnings about this.
wxGCC_WARNING_SUPPRESS(ctor-dtor-privacy)
// ----------------------------------------------------------------------------
// WX_DEFINE_VARARG_FUNC* macros
// ----------------------------------------------------------------------------
@@ -1248,4 +1252,6 @@ private:
inline void name(_WX_VARARG_FIXED_UNUSED_EXPAND(numfixed, fixed)) \
{}
wxGCC_WARNING_RESTORE(ctor-dtor-privacy)
#endif // _WX_STRVARARG_H_