mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
SF but #417587: compiler warnings compiling 2.1.
Repaired *some* of the SGI compiler warnings Sjoerd Mullender reported.
This commit is contained in:
parent
9dfe4cdfa4
commit
cf96de052f
4 changed files with 1 additions and 8 deletions
|
@ -671,12 +671,10 @@ PyObject *PyUnicode_DecodeUTF8(const char *s,
|
|||
case 0:
|
||||
errmsg = "unexpected code byte";
|
||||
goto utf8Error;
|
||||
break;
|
||||
|
||||
case 1:
|
||||
errmsg = "internal error";
|
||||
goto utf8Error;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
if ((s[1] & 0xc0) != 0x80) {
|
||||
|
@ -740,7 +738,6 @@ PyObject *PyUnicode_DecodeUTF8(const char *s,
|
|||
/* Other sizes are only needed for UCS-4 */
|
||||
errmsg = "unsupported Unicode code range";
|
||||
goto utf8Error;
|
||||
break;
|
||||
}
|
||||
s += n;
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue