Skip to content

Conversation

guitargeek
Copy link
Contributor

Fixing warnings like:

In file included from /home/rembserj/code/root/root_src/core/metacling/src/TClingCallFunc.cxx:32:
/home/rembserj/code/root/root_src/core/metacling/src/TCling.h:372:17: warning: virtual method 'GetFunctionName' is inside a 'final' class and can never be overridden [-Wunnecessary-virtual-specifier]
  372 |    virtual void GetFunctionName(const clang::Decl *decl, std::string &name) const;
      |                 ^
1 warning generated.

or

/home/rembserj/code/root/root_src/tree/ntuple/test/ntuple_parallel_writer.cxx:97:29: warning: variable 'pt1' is uninitialized when passed as a const pointer argument here [-Wuninitialized-const-pointer]
   97 |       e1->BindRawPtr("pt", &pt1);
      |

Copy link

github-actions bot commented Oct 10, 2025

Test Results

    22 files      22 suites   3d 17h 8m 57s ⏱️
 3 688 tests  3 687 ✅ 0 💤 1 ❌
79 202 runs  79 201 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit 5143dcd.

♻️ This comment has been updated with latest results.

Copy link
Member

@vepadulano vepadulano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Just a minor comment

Fixing warnings like:
```txt
In file included from /home/rembserj/code/root/root_src/core/metacling/src/TClingCallFunc.cxx:32:
/home/rembserj/code/root/root_src/core/metacling/src/TCling.h:372:17: warning: virtual method 'GetFunctionName' is inside a 'final' class and can never be overridden [-Wunnecessary-virtual-specifier]
  372 |    virtual void GetFunctionName(const clang::Decl *decl, std::string &name) const;
      |                 ^
1 warning generated.
```
or
```
/home/rembserj/code/root/root_src/tree/ntuple/test/ntuple_parallel_writer.cxx:97:29: warning: variable 'pt1' is uninitialized when passed as a const pointer argument here [-Wuninitialized-const-pointer]
   97 |       e1->BindRawPtr("pt", &pt1);
      |
```
@guitargeek
Copy link
Contributor Author

Thanks @vepadulano for the review! I have addressed your comments.

Copy link
Member

@vepadulano vepadulano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's wait for the CI to be green before merging

@guitargeek guitargeek merged commit ada2501 into root-project:master Oct 11, 2025
24 of 27 checks passed
@guitargeek guitargeek deleted the clang_21_warnings branch October 11, 2025 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants