bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157)

This commit is contained in:
Stefan Krah 2017-08-21 13:09:59 +02:00 committed by GitHub
parent 0267128aa4
commit f432a3234f
13 changed files with 35 additions and 21 deletions

View file

@ -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,