cmd: Avoid dead assignment (clang)

Frédéric Delanoy frederic.delanoy at gmail.com
Thu Nov 24 05:02:40 CST 2011


Value stored to 'status' is never read

One could use SetLastError instead, but the preceding FindFirstFileW call already checked for errors
and set the last error accordingly.
---
 programs/cmd/builtins.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index 56961a3..6703cef 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -517,7 +517,6 @@ void WCMD_copy (void) {
       } while (FindNextFileW(hff, &fd) != 0);
       FindClose (hff);
   } else {
-      status = ERROR_FILE_NOT_FOUND;
       WCMD_print_error ();
   }
 }
-- 
1.7.7.2




More information about the wine-patches mailing list