summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2017-08-21 13:09:59 +0200
committerGitHub <noreply@github.com>2017-08-21 13:09:59 +0200
commitf432a3234f9f2ee09bd40be03e06bf72865ee375 (patch)
treec3efacc3e10d4bb12216be2eafae64f144ecfb5e /Objects/unicodeobject.c
parentbpo-9566 & bpo-30747: Silence warnings from pyatomic.h macros (#3140) (diff)
downloadcpython-f432a3234f9f2ee09bd40be03e06bf72865ee375.tar.gz
cpython-f432a3234f9f2ee09bd40be03e06bf72865ee375.tar.bz2
cpython-f432a3234f9f2ee09bd40be03e06bf72865ee375.zip
bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157)
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 0e6cb7f2a5e..f7b2aa6c3df 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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,