Unterminated non-empty case block

[unterminated-case] A non-empty case block was not terminated.

This warning category is spelled [unterminated-case] by qmllint.

Unterminated non-empty case block

What happened?

A case block in a switch statement was non-empty but was not terminated by a break, return, or throw statement. There was also no opt-in fallthrough comment.

Why is that bad?

Fallthrough logic in switch statements can be confusing or overlooked. If it is intentional, it should be marked explicitly with a comment such as “// fallthrough”. If it isn’t intentional, the warning indicates that a terminating statement was forgotten.

Example

To fix this warning, add missing terminating statements or add explicit opt-in comments allowing fallthrough logic: