Encountering build warnings when building with -Wall -Wextra with C++20.
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_FLAGS="-Wall -Wextra" -DwxBUILD_SAMPLES=ALL ..
cmake --build . --target auidemo -- -j6
[ 96%] Building CXX object libs/html/CMakeFiles/wxhtml.dir/__/__/__/__/src/html/helpfrm.cpp.o
In file included from /Users/richardpowell/Development/github.com/rmpowell77/wxWidgets.git/src/aui/framemanager.cpp:24:
/Users/richardpowell/Development/github.com/rmpowell77/wxWidgets.git/include/wx/aui/framemanager.h:676:5: warning: definition of implicit copy constructor for 'wxAuiManagerEvent' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxAuiManagerEvent);
^
/Users/richardpowell/Development/github.com/rmpowell77/wxWidgets.git/include/wx/rtti.h:142:5: note: expanded from macro 'wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN'
wxDECLARE_NO_ASSIGN_CLASS(name); \
^
/Users/richardpowell/Development/github.com/rmpowell77/wxWidgets.git/include/wx/defs.h:3053:20: note: expanded from macro 'wxDECLARE_NO_ASSIGN_CLASS'
classname& operator=(const classname&) wxMEMBER_DELETE
^
/Users/richardpowell/Development/github.com/rmpowell77/wxWidgets.git/include/wx/aui/framemanager.h:649:50: note: in implicit copy constructor for 'wxAuiManagerEvent' first required here
wxEvent *Clone() const override { return new wxAuiManagerEvent(*this); }
^
Looks very similar to #22291 .
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #23625 as completed via 6c35c70.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()