From: Neal Norwitz Date: Sun, 8 Jan 2006 01:12:10 +0000 (+0000) Subject: Fix icc warnings: remove (sometimes) unused variable conditionally X-Git-Tag: v2.5a0~865 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d43069ce95ec24adc22092a09bb5abca530cf3a2;p=python Fix icc warnings: remove (sometimes) unused variable conditionally --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 15d647ead4..37e292d06c 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;