Skip to content

fix warning final-dtor-non-final-class#15490

Open
f3sch wants to merge 1 commit into
AliceO2Group:devfrom
f3sch:fix/warn/dtor
Open

fix warning final-dtor-non-final-class#15490
f3sch wants to merge 1 commit into
AliceO2Group:devfrom
f3sch:fix/warn/dtor

Conversation

@f3sch
Copy link
Copy Markdown
Collaborator

@f3sch f3sch commented Jun 4, 2026

Fixes these compilation warnings that started showing up after updating:

2026-06-04@21:16:17:DEBUG:O2:O2:0: /Users/f3sch/git/alice/sw/SOURCES/O2/dev_head/0/Detectors/EMCAL/base/include/EMCALBase/NonlinearityHandler.h:202:43: warning: class with destructor marked 'final' cannot be inherited from [-Wfinal-dtor-non-final-class]
2026-06-04@21:16:17:DEBUG:O2:O2:0:   191 |   class FunctionNotFoundExcpetion : public std::exception
2026-06-04@21:16:17:DEBUG:O2:O2:0:       |                                   final
2026-06-04@21:16:17:DEBUG:O2:O2:0:   192 |   {
2026-06-04@21:16:17:DEBUG:O2:O2:0:   193 |    public:
2026-06-04@21:16:17:DEBUG:O2:O2:0:   194 |     /// \brief Constructor
2026-06-04@21:16:17:DEBUG:O2:O2:0:   195 |     /// \param Name of the nonlinearity function raising the exception
2026-06-04@21:16:17:DEBUG:O2:O2:0:   196 |     FunctionNotFoundExcpetion(const std::string_view name) : mName(name), mMessage()
2026-06-04@21:16:17:DEBUG:O2:O2:0:   197 |     {
2026-06-04@21:16:17:DEBUG:O2:O2:0:   198 |       mMessage = "Nonlinearity funciton " + mName + " not found";
2026-06-04@21:16:17:DEBUG:O2:O2:0:   199 |     }
2026-06-04@21:16:17:DEBUG:O2:O2:0:   200 |
2026-06-04@21:16:17:DEBUG:O2:O2:0:   201 |     /// \brief Destructor
2026-06-04@21:16:17:DEBUG:O2:O2:0:   202 |     ~FunctionNotFoundExcpetion() noexcept final = default;
2026-06-04@21:16:17:DEBUG:O2:O2:0:       |                                           ^

Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant