Fix warnings that break Windows build


Windows machines in the CI have more strict rules for dealing with
warnings. Most of them are treated as errors.
This patch fixes such warnings.

Task-number: QTBUG-97769
Change-Id: I9432d266a0b019512c38009ff2395b51071c59bf
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
commit73e955d9f675c9587ba2eaefca60a7a825aa1037
parent9121d0e4b45fb3a1401554bc48c77f17ce40a7f9
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeTue, 9 Nov 2021 10:28:22 +0100