Back

LL077

Empty case branch

Object Pascal — Delphi & Free Pascal
Warning
Reliability

A case branch with no statements silently ignores matching values and may hide bugs

a case branch with no statements silently ignores matching values and may hide bugs.

Why this severity

a case branch with no statements silently ignores matching values and may hide bugs.


Known false positives

intentional fall-through placeholders with a comment.

Remediation example

case Status of
  1: HandleActive;
  2: HandlePending;
end;

Reconnecting… Connection lost. Reload