diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-08 01:12:10 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-08 01:12:10 (GMT) |
commit | d43069ce95ec24adc22092a09bb5abca530cf3a2 (patch) | |
tree | 13dea1e01de9f906c0d3dd3b12c0e07ce98f9165 /Objects/unicodeobject.c | |
parent | b2da01b27ce831310d1bed384d3177cfad8bb07a (diff) | |
download | cpython-d43069ce95ec24adc22092a09bb5abca530cf3a2.zip cpython-d43069ce95ec24adc22092a09bb5abca530cf3a2.tar.gz cpython-d43069ce95ec24adc22092a09bb5abca530cf3a2.tar.bz2 |
Fix icc warnings: remove (sometimes) unused variable conditionally
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 15d647e..37e292d 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; |