mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
libefi: Tag an unreachable switch default.
Coverity reports an uninitialized "len" in case the switch defaults without hitting any case. Respect the original intent and quell the false positive with the relatively new __unreachable() builtin. CID: 1347796
This commit is contained in:
parent
d2c82c0cfe
commit
98b6ade62d
1 changed files with 2 additions and 0 deletions
|
|
@ -266,6 +266,8 @@ CL(int direction)
|
|||
case 2: /* entire line */
|
||||
len = x;
|
||||
break;
|
||||
default: /* NOTREACHED */
|
||||
__unreachable();
|
||||
}
|
||||
|
||||
if (cury == y - 1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue