Otherwise gcc emits the following warnings (treated as errors):

ShellPkg/Application/Shell/Shell.c: In function 'RunCommandOrFile':
ShellPkg/Application/Shell/Shell.c:2043:7: error: enumeration value 
'INTERNAL_COMMAND' not handled in switch [-Werror=switch]
ShellPkg/Application/Shell/Shell.c:2043:7: error: enumeration value 
'FILE_SYS_CHANGE' not handled in switch [-Werror=switch]
ShellPkg/Application/Shell/Shell.c:2043:7: error: enumeration value 
'UNKNOWN_INVALID' not handled in switch [-Werror=switch]
ShellPkg/Application/Shell/Shell.c:2008:3: error: enumeration value 
'FILE_SYS_CHANGE' not handled in switch [-Werror=switch]
ShellPkg/Application/Shell/Shell.c:2008:3: error: enumeration value 
'UNKNOWN_INVALID' not handled in switch [-Werror=switch]
cc1: all warnings being treated as errors

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <[email protected]>
---
 ShellPkg/Application/Shell/Shell.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/ShellPkg/Application/Shell/Shell.c 
b/ShellPkg/Application/Shell/Shell.c
index 7e4c891..ef821a5 100644
--- a/ShellPkg/Application/Shell/Shell.c
+++ b/ShellPkg/Application/Shell/Shell.c
@@ -2072,8 +2072,18 @@ RunCommandOrFile(
           //
           SetLastError(StatusCode);
           break;
+        default:
+          //
+          // Do nothing.
+          //
+          break;
       }
       break;
+    default:
+      //
+      // Do nothing.
+      //
+      break;
   }
 
   SHELL_FREE_NON_NULL(CommandWithPath);
-- 
1.8.3.1


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to