]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Fix unhandled value in switch statement
authorPaulo Alcantara <paulo.alc.cavalcanti@hp.com>
Wed, 16 Dec 2015 16:48:59 +0000 (16:48 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Wed, 16 Dec 2015 16:48:59 +0000 (16:48 +0000)
This patch fixes the following compile error under GCC 5.3.1:

/home/pcacjr/work/edk2.git/ShellPkg/Application/Shell/ShellManParser.c:
In function 'IsTitleHeader':
/home/pcacjr/work/edk2.git/ShellPkg/Application/Shell/ShellManParser.c:502:5:
error: enumeration value 'Final' not handled in switch [-Werror=switch]
     switch (State) {
     ^

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Paulo Alcantara <paulo.alc.cavalcanti@hp.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19304 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Application/Shell/ShellManParser.c

index ce471cffdaf44b13d08c040c7adc1a3f2bcd0b58..f12775f8658531f6376a26363452158fb9126ec7 100644 (file)
@@ -564,6 +564,8 @@ IsTitleHeader(
         Line++;\r
       break;\r
 \r
+      default:\r
+       break;\r
     }\r
 \r
   } while (State < Final);\r