From e14a5a7efa4350fd75a0c8db65461d8d12a13b17 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 2 Jul 2012 19:42:34 +0000 Subject: [PATCH] * mount.cc (mount_info::conv_to_win32_path): Eliminate unneeded assignment found by CLANG. * path.cc (symlink_info::check): Remove unneeded/unused variable found by CLANG. --- winsup/cygwin/ChangeLog | 8 +++++++- winsup/cygwin/mount.cc | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3514580f8..5ff6fab88 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,6 +1,12 @@ 2012-07-02 Christopher Faylor - * path.cc (symlink_info::check): Remove unneeded/unused variable. + * mount.cc (mount_info::conv_to_win32_path): Eliminate unneeded + assignment found by CLANG. + +2012-07-02 Christopher Faylor + + * path.cc (symlink_info::check): Remove unneeded/unused variable found + by CLANG. 2012-07-02 Corinna Vinschen diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc index a661b8731..17d9a45fa 100644 --- a/winsup/cygwin/mount.cc +++ b/winsup/cygwin/mount.cc @@ -648,7 +648,6 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst, device& dev, if (!src_path[n]) { - unit = 0; dst[0] = '\0'; if (mount_table->cygdrive_len > 1) dev = *cygdrive_dev;