Fix issues found by PVS-Studio Static Analyzer
Fix static analysis diagnostics reported in CMake proper. For now we do not fix vendored third-party sources which should be fixed upstream.
Issue: #19610
Fix static analysis diagnostics reported in CMake proper. For now we do not fix vendored third-party sources which should be fixed upstream.
Issue: #19610