From fafe8f6926e9252b959ae6ad59e326700c1c038c Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Wed, 13 Dec 2023 10:15:21 +0100 Subject: [PATCH] Fix two compiler warnings (#178) * Bump the version of SIO * Explicitly initialize the base class --------- Co-authored-by: jmcarcell --- CMakeLists.txt | 2 +- src/cpp/include/IMPL/AccessChecked.h | 1 + src/cpp/src/IMPL/TrackImpl.cc | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1148e1c63..cac2e1408 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,7 +170,7 @@ IF( NOT SIO_FOUND ) include(FetchContent) FetchContent_Declare(sio_extern GIT_REPOSITORY https://github.com/iLCSoft/SIO.git - GIT_TAG v00-01 + GIT_TAG v00-02 GIT_SHALLOW 1 # FIND_PACKAGE_ARGS ) diff --git a/src/cpp/include/IMPL/AccessChecked.h b/src/cpp/include/IMPL/AccessChecked.h index 3cb5fc988..ada5e8dd9 100644 --- a/src/cpp/include/IMPL/AccessChecked.h +++ b/src/cpp/include/IMPL/AccessChecked.h @@ -22,6 +22,7 @@ namespace IMPL { public: AccessChecked() ; + AccessChecked(const AccessChecked&) = default; virtual ~AccessChecked() = default; virtual int simpleUID() const { return _id ; } diff --git a/src/cpp/src/IMPL/TrackImpl.cc b/src/cpp/src/IMPL/TrackImpl.cc index ef0b6824b..097238283 100644 --- a/src/cpp/src/IMPL/TrackImpl.cc +++ b/src/cpp/src/IMPL/TrackImpl.cc @@ -20,7 +20,7 @@ namespace IMPL { } // copy constructor - TrackImpl::TrackImpl(const TrackImpl& o) + TrackImpl::TrackImpl(const TrackImpl& o) : AccessChecked(o) { *this = o ; // call operator =