Commit 866c3e8a authored by Robert Bradshaw's avatar Robert Bradshaw

Add semicolon for fallthrough statements.

Resolves note at #1765.
parent 3ea17b70
......@@ -3623,7 +3623,7 @@ class DefNodeWrapper(FuncDefNode):
if i >= min_positional_args-1:
code.put('case %2d: ' % (i+1))
code.putln("values[%d] = PyTuple_GET_ITEM(%s, %d);" % (i, Naming.args_cname, i))
code.putln('CYTHON_FALLTHROUGH')
code.putln('CYTHON_FALLTHROUGH;')
if min_positional_args == 0:
code.put('case 0: ')
code.putln('break;')
......@@ -3750,7 +3750,7 @@ class DefNodeWrapper(FuncDefNode):
code.put('case %2d: ' % (i+1))
code.putln("values[%d] = PyTuple_GET_ITEM(%s, %d);" % (
i, Naming.args_cname, i))
code.putln('CYTHON_FALLTHROUGH')
code.putln('CYTHON_FALLTHROUGH;')
code.putln('case 0: break;')
if not self.star_arg:
code.put('default: ') # more arguments than allowed
......@@ -3820,7 +3820,7 @@ class DefNodeWrapper(FuncDefNode):
code.putln(code.error_goto(self.pos))
code.putln('}')
if max_positional_args > 0 and i < last_required_arg:
code.putln('CYTHON_FALLTHROUGH')
code.putln('CYTHON_FALLTHROUGH;')
if max_positional_args > 0:
code.putln('}')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment