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) {
     ^
cc1: all warnings being treated as errors
GNUmakefile:457: recipe for target
'/home/pcacjr/work/edk2.git/Build/OvmfX64/DEBUG_GCC49/X64/ShellPkg/Application/Shell/Shell/OUTPUT/ShellManParser.obj'
failed
make: ***
[/home/pcacjr/work/edk2.git/Build/OvmfX64/DEBUG_GCC49/X64/ShellPkg/Application/Shell/Shell/OUTPUT/ShellManParser.obj]
Error 1

Cc: Jaben Carsey <jaben.car...@intel.com>
Cc: Shumin Qiu <shumin....@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Paulo Alcantara <paulo.alc.cavalca...@hp.com>
---
 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 ce471cf..2c66a20 100644
--- a/ShellPkg/Application/Shell/ShellManParser.c
+++ b/ShellPkg/Application/Shell/ShellManParser.c
@@ -564,6 +564,8 @@ IsTitleHeader(
         Line++;
       break;
 
+      default:
+       ;
     }
 
   } while (State < Final);
-- 
2.6.4

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to