bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 0e6cb7f..f7b2aa6 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1794,6 +1794,7 @@
case SSTATE_INTERNED_IMMORTAL:
Py_FatalError("Immortal interned string died.");
+ /* fall through */
default:
Py_FatalError("Inconsistent interned string state.");
@@ -6778,7 +6779,7 @@
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 @@
break;
collstart = pos;
assert(collstart != collend);
- /* fallback to general error handling */
+ /* fall through */
default:
rep = unicode_encode_call_errorhandler(errors, &error_handler_obj,