From: jljusten Date: Mon, 20 Sep 2010 07:03:51 +0000 (+0000) Subject: ShellPkg: Fix "unreachable code" warning with VS2005 X-Git-Tag: edk2-stable201903~15529 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=7effcbff2953172b63d9416f8785be7a5bc5c015 ShellPkg: Fix "unreachable code" warning with VS2005 Since all paths of the switch block now return, it is not possible to reach the code following the switch block. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10894 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c b/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c index a8af5ed7dc..f3fc6b06a8 100644 --- a/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c +++ b/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c @@ -306,8 +306,6 @@ TestOperation ( ASSERT(FALSE); return (FALSE); } - ASSERT(FALSE); - return (FALSE); } EFI_STATUS