FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix warning about unused dict · python/cpython@3453e44 · GitHub

Repository navigation

Commit 3453e44

Browse files
committed
Fix warning about unused dict
1 parent d2890a6 commit 3453e44

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎Lib/test/test_cext/extension.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ test_add(PyObject *Py_UNUSED(module), PyObject *args)
8181
static PyObject *
8282
test_macros(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
8383
{
84-
PyObject *obj, *dict;
84+
PyObject *obj;
85+
#ifndef Py_LIMITED_API
86+
PyObject *dict;
87+
#endif
8588

8689
// test Py_BUILD_ASSERT() and Py_BUILD_ASSERT_EXPR()
8790
Py_BUILD_ASSERT(sizeof(int) == sizeof(unsigned int));

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL