diff options
author | Christian Tismer <tismer@stackless.com> | 2023-05-16 12:17:21 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-05-16 11:17:21 +0000 |
commit | 2368bbdfd7032f1d7f74c036a5bf14854015c835 (patch) | |
tree | 8c99a2fdc36a086cf1ece3d44abfd1c9a44071e4 | |
parent | 51aa1e4e2c9ea6f36d3e5e922b6cf1689e442429 (diff) |
shiboken: Fix an unused variable warning
Change-Id: I71953084cafe9ab4f13573e7adc94fa550e65ad4
Task-number: PYSIDE-2310
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
(cherry picked from commit 6a92d845080bf2738c03ceda8ca29c2248d84a40)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | sources/shiboken6/libshiboken/signature/signature_globals.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sources/shiboken6/libshiboken/signature/signature_globals.cpp b/sources/shiboken6/libshiboken/signature/signature_globals.cpp index 323bc1d66..d41936126 100644 --- a/sources/shiboken6/libshiboken/signature/signature_globals.cpp +++ b/sources/shiboken6/libshiboken/signature/signature_globals.cpp @@ -88,11 +88,9 @@ static safe_globals_struc *init_phase_1() * Due to MSVC's limitation to 64k strings, we needed to assemble pieces. */ auto **block_ptr = reinterpret_cast<const char **>(PySide_CompressedSignaturePackage); - int npieces = 0; PyObject *piece{}; AutoDecRef zipped_string_sequence(PyList_New(0)); for (; **block_ptr != 0; ++block_ptr) { - npieces++; // we avoid the string/unicode dilemma by not using PyString_XXX: piece = Py_BuildValue("s", *block_ptr); if (piece == nullptr || PyList_Append(zipped_string_sequence, piece) < 0) |