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:
@@ -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_
|
||||
|
Reference in New Issue
Block a user