From 5188f08bf426497ea0f17e3f6751320cc11aeaae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Delanoy?= Date: Wed, 19 Dec 2012 21:55:40 +0100 Subject: [PATCH] cmd: Remove dead assignments (clang). --- 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 8715c5105a..acf08823eb 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 3884727d83..d2884c9597 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); -- 2.32.0.93.g670b81a890