fix g++ warnings

Merged Andrei Pavel requested to merge 2025-fix-g++-warnings into master

Part of #2025 (closed)

Merge request reports