silence enum -Wshadow warnings by clang #20873
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull request:
Changes or fixes:
Fixes #20790
Tested locally with clang15, using: test.txt
I did not go into modifying ROOT/....hxx headers, they give more warnings/errors, so to run the example above, comment all include ROOT/...:
This test.txt script could maybe become part of the static analyzer we mentioned some time ago (based on https://github.com/olifre/rootStaticAnalyzer)
On the other hand, one could say this is all a bug in clang and the issue is a Won'tFix, since g++ does not shown these warnings. So I'm happy to close this PR, too.
Checklist: