=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: cmd: Remove dead assignments ( clang).

Alexandre Julliard julliard at winehq.org
Thu Dec 20 12:39:56 CST 2012


Module: wine
Branch: master
Commit: 5188f08bf426497ea0f17e3f6751320cc11aeaae
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5188f08bf426497ea0f17e3f6751320cc11aeaae

Author: Frédéric Delanoy <frederic.delanoy at 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);
 




More information about the wine-cvs mailing list