diff options
author | Paulo Alcantara <paulo.alc.cavalcanti@hp.com> | 2015-12-18 07:43:13 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2015-12-18 07:43:13 +0000 |
commit | 553e1a5738c5f8eb0423de66218330e99de4aebc (patch) | |
tree | 7fe49fd0efb8a8ab4b28577e462877534677e4ae | |
parent | c3cf4d47580c9c90359e60cc3e47af86d17db3f4 (diff) | |
download | edk2-platforms-553e1a5738c5f8eb0423de66218330e99de4aebc.tar.xz |
ShellPkg: Fix unhandled value in switch statement
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) {
^
(Sync patch r19304 from main trunk.)
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/branches/UDK2015@19416 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | ShellPkg/Application/Shell/ShellManParser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ShellPkg/Application/Shell/ShellManParser.c b/ShellPkg/Application/Shell/ShellManParser.c index ce471cffda..f12775f865 100644 --- a/ShellPkg/Application/Shell/ShellManParser.c +++ b/ShellPkg/Application/Shell/ShellManParser.c @@ -564,6 +564,8 @@ IsTitleHeader( Line++;
break;
+ default:
+ break;
}
} while (State < Final);
|