Fix more warnings-are-errors from MSVC
Two more warnings were found:
* a variable "value" in the structured binding was shadowing the
function argument with the same name;
* the windowsBits variable was potentially uninitialized.
The second warning is bogus, becuase the switch() below covers
all cases, but it's easier to initialize the variable with 0 to
make the compiler happy.
Change-Id: Ia540d7fe306db82def1ecf31ea65780d405642c5
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
Reviewed-by: Rym Bouabid <rym.bouabid@qt.io>
| commit | adba5d0f3053074b1f68af6e2755d11b7650a4ad |
| parent | 217344adcbc9814752723a31b3c2fc4d7ae957b8 |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Thu, 6 Nov 2025 11:27:59 +0100 |
- M src/tools/qtopenapi-generator/src/main/resources/cpp-qt6-client/common/HttpRequest.cpp.mustache
- M src/tools/qtopenapi-generator/src/main/resources/cpp-qt6-client/common/helpers-body.mustache
- M tests/auto/colorpalette/client/common/QtOAIHelpers.cpp
- M tests/auto/colorpalette/qmlclient/common/OAIHelpers.cpp
- M tests/auto/compression/client/common/QtOAIHelpers.cpp
- M tests/auto/compression/client/common/QtOAIHttpRequest.cpp
- M tests/auto/linking_several_clients/client1/common/QtOAIHelpers.cpp
- M tests/auto/mediatype/client/common/QtOAIHelpers.cpp
- M tests/auto/openapi2.0/client/common/QtOAIHelpers.cpp
- M tests/auto/operation-parameters/client/common/QtOAIHelpers.cpp
- M tests/auto/petstore/client/common/QtOAIHelpers.cpp
- M tests/auto/petstore/qmlclient/common/OAIHelpers.cpp
- M tests/auto/responses/client/common/QtOAIHelpers.cpp
- M tests/auto/responses/client/common/QtOAIHttpRequest.cpp