diff --git a/include/wx/strvararg.h b/include/wx/strvararg.h index 3a363a3dee..0abf59b1b3 100644 --- a/include/wx/strvararg.h +++ b/include/wx/strvararg.h @@ -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_