Enable warnings for CMake builds and fix some warnings that this
exposed.

Also add wxUSE_NATIVE_DATAVIEWCTRL option and change default GTK version
to 3 for CMake too.

See https://github.com/wxWidgets/wxWidgets/pull/1825
This commit is contained in:
Vadim Zeitlin
2020-05-06 14:34:34 +02:00
16 changed files with 59 additions and 33 deletions

View File

@@ -343,7 +343,7 @@ public:
{
}
virtual bool IsFrozen() const { return true; }
virtual bool IsFrozen() const wxOVERRIDE { return true; }
};
@@ -375,7 +375,7 @@ public:
{
}
virtual bool IsFrozen() const { return true; }
virtual bool IsFrozen() const wxOVERRIDE { return true; }
};

View File

@@ -211,6 +211,12 @@ struct WinStruct : public T
#include "wx/gdicmn.h"
#include "wx/colour.h"
#ifdef COM_DECLSPEC_NOTHROW
#define wxSTDMETHODIMP COM_DECLSPEC_NOTHROW STDMETHODIMP
#else
#define wxSTDMETHODIMP STDMETHODIMP
#endif
// make conversion from wxColour and COLORREF a bit less painful
inline COLORREF wxColourToRGB(const wxColour& c)
{

View File

@@ -28,7 +28,7 @@ bool WXDLLIMPEXP_CORE Initialize();
void WXDLLIMPEXP_CORE Uninitialize();
bool WXDLLIMPEXP_CORE GetActivationFactory(const wxString& activatableClassId, REFIID iid, void ** factory);
HRESULT WXDLLIMPEXP_CORE GetActivationFactory(const wxString& activatableClassId, REFIID iid, void ** factory);
// RAII class initializing WinRT in its ctor and undoing it in its dtor.
class WXDLLIMPEXP_CORE Initializer