cmd: Remove dead assignments (clang)
Frédéric Delanoy
frederic.delanoy at gmail.com
Wed Dec 19 14:55:40 CST 2012
---
programs/cmd/builtins.c | 1 -
programs/cmd/wcmdmain.c | 5 -----
2 files changed, 6 deletions(-)
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index 8715c51..acf0882 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -440,7 +440,6 @@ static BOOL WCMD_ManualCopy(WCHAR *srcname, WCHAR *dstname, BOOL ascii, BOOL app
}
/* Loop copying data from source to destination until EOF read */
- ok = TRUE;
do
{
char buffer[MAXSTRING];
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index 3884727..d2884c9 100644
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -1157,8 +1157,6 @@ void WCMD_run_program (WCHAR *command, BOOL called)
static const WCHAR batExt[] = {'.','b','a','t','\0'};
static const WCHAR cmdExt[] = {'.','c','m','d','\0'};
- launched = TRUE;
-
/* Special case BAT and CMD */
if (ext && (!strcmpiW(ext, batExt) || !strcmpiW(ext, cmdExt))) {
BOOL oldinteractive = interactive;
@@ -2404,9 +2402,6 @@ int wmain (int argc, WCHAR *argvW[])
* parameters after the /C or /K by pretending there was a single space */
if (argPos == NULL) argPos = (WCHAR *)spaceW;
- /* Build the command to execute - It is what is left in argPos */
- len = strlenW(argPos);
-
/* Take a copy */
cmd = heap_strdupW(argPos);
--
1.8.0
More information about the wine-patches
mailing list