clang-tidy: fix lints with newer clang-tidy


Some are found in CI, but this makes clang-tidy 21 happy.

Merge request reports

Loading