Module: wine Branch: master Commit: 5188f08bf426497ea0f17e3f6751320cc11aeaae URL: http://source.winehq.org/git/wine.git/?a=commit;h=5188f08bf426497ea0f17e3f67...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Wed Dec 19 21:55:40 2012 +0100
cmd: Remove dead assignments (clang).
---
programs/cmd/builtins.c | 1 - programs/cmd/wcmdmain.c | 5 ----- 2 files changed, 0 insertions(+), 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);