diff options
author | Christian Tismer <tismer@stackless.com> | 2023-05-16 12:17:21 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2023-05-16 13:14:49 +0200 |
commit | 6a92d845080bf2738c03ceda8ca29c2248d84a40 (patch) | |
tree | b28834cf1f3eb508e5c3df2fb5c86df825066705 | |
parent | 3a290f2b7d6a0cba6b8e021c92501b982f55e8a4 (diff) |
shiboken: Fix an unused variable warning
Change-Id: I71953084cafe9ab4f13573e7adc94fa550e65ad4
Pick-to: 6.5
Task-number: PYSIDE-2310
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
-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) |