warning: definition of implicit copy constructor for (Issue #23625)

24 views
Skip to first unread message

Richard Powell

unread,
Jun 8, 2023, 11:46:19 PM6/8/23
to wx-...@googlegroups.com, Subscribed

Description

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 .

Platform and version information

  • wxWidgets version you are building: master, @ db09adf
  • wxWidgets port you are building: wxOSX
  • OS and its version: macOS 13.4 (22F66)
  • Compiler being used: AppleClang 14.0.3.14030022

build.log


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23625@github.com>

VZ

unread,
Jun 10, 2023, 11:24:57 AM6/10/23
to wx-...@googlegroups.com, Subscribed

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.Message ID: <wxWidgets/wxWidgets/issue/23625/issue_event/9491081692@github.com>

Reply all
Reply to author
Forward
0 new messages