summaryrefslogtreecommitdiff
path: root/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-17 20:09:48 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-17 20:09:48 +0000
commite97233217ed6d37d7bb7fefb0ff0821515a23b48 (patch)
treef7701934bb62d5ba79025c295b098f2eee5abbc1 /ShellPkg/Library/UefiShellLevel1CommandsLib/If.c
parenta48ea694577d853c9e38500e0d0ce3ab65f17d90 (diff)
downloadedk2-platforms-e97233217ed6d37d7bb7fefb0ff0821515a23b48.tar.xz
ShellPkg: Fix several GCC compiler warnings
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10890 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Library/UefiShellLevel1CommandsLib/If.c')
-rw-r--r--ShellPkg/Library/UefiShellLevel1CommandsLib/If.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c b/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c
index 3376329622..3a154a2625 100644
--- a/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c
+++ b/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c
@@ -62,7 +62,7 @@ IsNextFragment (
//
*Statement+=StrLen(Fragment);
while (*Statement[0] == L' ') {
- *Statement++;
+ Statement++;
}
FreePool(Tester);
return (TRUE);
@@ -302,6 +302,9 @@ TestOperation (
}
return (FALSE);
break;
+ default:
+ ASSERT(FALSE);
+ return (FALSE);
}
ASSERT(FALSE);
return (FALSE);