mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Fix icc warnings: remove (sometimes) unused variable conditionally
This commit is contained in:
parent
b2da01b27c
commit
d43069ce95
1 changed files with 4 additions and 2 deletions
|
@ -2291,7 +2291,6 @@ PyObject *_PyUnicode_DecodeUnicodeInternal(const char *s,
|
|||
int startinpos;
|
||||
int endinpos;
|
||||
int outpos;
|
||||
Py_UNICODE unimax;
|
||||
PyUnicodeObject *v;
|
||||
Py_UNICODE *p;
|
||||
const char *end;
|
||||
|
@ -2299,7 +2298,10 @@ PyObject *_PyUnicode_DecodeUnicodeInternal(const char *s,
|
|||
PyObject *errorHandler = NULL;
|
||||
PyObject *exc = NULL;
|
||||
|
||||
unimax = PyUnicode_GetMax();
|
||||
#ifdef Py_UNICODE_WIDE
|
||||
Py_UNICODE unimax = PyUnicode_GetMax();
|
||||
#endif
|
||||
|
||||
v = _PyUnicode_New((size+Py_UNICODE_SIZE-1)/ Py_UNICODE_SIZE);
|
||||
if (v == NULL)
|
||||
goto onError;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue