This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=3564a77869dca55a84835cca5e20f9f448a713c2 commit 3564a77869dca55a84835cca5e20f9f448a713c2 Author: Guillem Jover <[email protected]> AuthorDate: Sun Mar 2 04:19:26 2025 +0100 dselect, test: Mark C++ destructors on derived classes as override We are overriding a virtual destructor from virtual base class, so we need to mark the destructor as an override. Warned-by: cppcheck Changelog: internal --- dselect/method.h | 2 +- dselect/pkglist.h | 2 +- scripts/t/Dpkg_Shlibs/patterns.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dselect/method.h b/dselect/method.h index e539ce882..e78b685c1 100644 --- a/dselect/method.h +++ b/dselect/method.h @@ -82,7 +82,7 @@ protected: methodlist(const methodlist &) = delete; methodlist &operator =(const methodlist &) = delete; quitaction display(); - ~methodlist(); + ~methodlist() override; }; extern int noptions; diff --git a/dselect/pkglist.h b/dselect/pkglist.h index 5862a4cee..53410082c 100644 --- a/dselect/pkglist.h +++ b/dselect/pkglist.h @@ -241,7 +241,7 @@ protected: int resolvesuggest(); int deletelessimp_anyleft(showpriority than); pkginfo **display(); - ~packagelist(); + ~packagelist() override; }; void repeatedlydisplay(packagelist *sub, showpriority, diff --git a/scripts/t/Dpkg_Shlibs/patterns.cpp b/scripts/t/Dpkg_Shlibs/patterns.cpp index eb4166438..064376627 100644 --- a/scripts/t/Dpkg_Shlibs/patterns.cpp +++ b/scripts/t/Dpkg_Shlibs/patterns.cpp @@ -66,7 +66,7 @@ namespace NSB { class ClassD : public NSA::ClassA, public ClassB, public ClassC { public: ClassD(); - virtual ~ClassD(); + virtual ~ClassD() override; virtual void generate_vt(const char *) const override; }; -- Dpkg.Org's dpkg

