From d8ed4dec6e5e462038bb63beb22ec2eae15c0e79 Mon Sep 17 00:00:00 2001 From: Paulo Alcantara Date: Wed, 16 Dec 2015 16:48:59 +0000 Subject: [PATCH] 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) { ^ Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paulo Alcantara Acked-by: Ard Biesheuvel Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19304 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Application/Shell/ShellManParser.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2