mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157)
This commit is contained in:
parent
0267128aa4
commit
f432a3234f
13 changed files with 35 additions and 21 deletions
|
@ -1794,6 +1794,7 @@ unicode_dealloc(PyObject *unicode)
|
|||
|
||||
case SSTATE_INTERNED_IMMORTAL:
|
||||
Py_FatalError("Immortal interned string died.");
|
||||
/* fall through */
|
||||
|
||||
default:
|
||||
Py_FatalError("Inconsistent interned string state.");
|
||||
|
@ -6778,7 +6779,7 @@ unicode_encode_ucs1(PyObject *unicode,
|
|||
case _Py_ERROR_REPLACE:
|
||||
memset(str, '?', collend - collstart);
|
||||
str += (collend - collstart);
|
||||
/* fall through ignore error handler */
|
||||
/* fall through */
|
||||
case _Py_ERROR_IGNORE:
|
||||
pos = collend;
|
||||
break;
|
||||
|
@ -6817,7 +6818,7 @@ unicode_encode_ucs1(PyObject *unicode,
|
|||
break;
|
||||
collstart = pos;
|
||||
assert(collstart != collend);
|
||||
/* fallback to general error handling */
|
||||
/* fall through */
|
||||
|
||||
default:
|
||||
rep = unicode_encode_call_errorhandler(errors, &error_handler_obj,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue