8000 bpo-44206: Fix compiler warnings in dictobject.c (GH-26440) · python/cpython@1a672a5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a672a5

Browse files
authored
bpo-44206: Fix compiler warnings in dictobject.c (GH-26440)
1 parent 7e6f237 commit 1a672a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Objects/dictobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,7 @@ PyDict_GetItem(PyObject *op, PyObject *key)
13161316
/* Preserve the existing exception */
13171317
PyObject *exc_type, *exc_value, *exc_tb;
13181318
PyObject *value;
1319-
Py_ssize_t ix;
1319+
Py_ssize_t ix; (void)ix;
13201320

13211321
_PyErr_Fetch(tstate, &exc_type, &exc_value, &exc_tb);
13221322
ix = _Py_dict_lookup(mp, key, hash, &value);
@@ -1374,7 +1374,7 @@ _PyDict_GetItemHint(PyDictObject *mp, PyObject *key,
13741374
PyObject *
13751375
_PyDict_GetItem_KnownHash(PyObject *op, PyObject *key, Py_hash_t hash)
13761376
{
1377-
Py_ssize_t ix;
1377+
Py_ssize_t ix; (void)ix;
13781378
PyDictObject *mp = (PyDictObject *)op;
13791379
PyObject *value;
13801380

@@ -1395,7 +1395,7 @@ _PyDict_GetItem_KnownHash(PyObject *op, PyObject *key, Py_hash_t hash)
13951395
PyObject *
13961396
PyDict_GetItemWithError(PyObject *op, PyObject *key)
13971397
{
1398-
Py_ssize_t ix;
1398+
Py_ssize_t ix; (void)ix;
13991399
Py_hash_t hash;
14001400
PyDictObject*mp = (PyDictObject *)op;
14011401
PyObject *value;

0 commit comments

Comments
 (0)
0