diff options
author | Stefan Krah <skrah@bytereef.org> | 2017-08-21 13:09:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-21 13:09:59 +0200 |
commit | f432a3234f9f2ee09bd40be03e06bf72865ee375 (patch) | |
tree | c3efacc3e10d4bb12216be2eafae64f144ecfb5e /Objects/unicodeobject.c | |
parent | bpo-9566 & bpo-30747: Silence warnings from pyatomic.h macros (#3140) (diff) | |
download | cpython-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.c | 5 |
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, |