From 98b6ade62d622e32b0ce34f764fafa6fdaaad04e Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Mon, 16 May 2016 20:00:09 +0000 Subject: [PATCH] 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 --- sys/boot/efi/libefi/efi_console.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/boot/efi/libefi/efi_console.c b/sys/boot/efi/libefi/efi_console.c index daf1338881e..08ea652f4e1 100644 --- a/sys/boot/efi/libefi/efi_console.c +++ b/sys/boot/efi/libefi/efi_console.c @@ -266,6 +266,8 @@ CL(int direction) case 2: /* entire line */ len = x; break; + default: /* NOTREACHED */ + __unreachable(); } if (cury == y - 1)