aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-07-02 20:01:19 +0000
committerChristopher Faylor <me@cgf.cx>2012-07-02 20:01:19 +0000
commitceec584ad39bca6caa6704bde22af58551bb139f (patch)
treeaf568ed7506d588d84bb3656e58b989fbc1039c7
parente82360f6591c6013bb0abdfaad4e83efd6afcd04 (diff)
downloadnewlib-ceec584ad39bca6caa6704bde22af58551bb139f.zip
newlib-ceec584ad39bca6caa6704bde22af58551bb139f.tar.gz
newlib-ceec584ad39bca6caa6704bde22af58551bb139f.tar.bz2
* fhandler_virtual.cc (fhandler_virtual::opendir): Eliminate duplicate
assignment found by Clang.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_virtual.cc1
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 1e9eb5e..7ae793f 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2012-07-02 Christopher Faylor <me.cygwin2012@cgf.cx>
+ * fhandler_virtual.cc (fhandler_virtual::opendir): Eliminate duplicate
+ assignment found by Clang.
+
+2012-07-02 Christopher Faylor <me.cygwin2012@cgf.cx>
+
* fhandler_registry.cc (fhandler_registry::open): Handle missing EROFS
error condition pointed to by Clang.
diff --git a/winsup/cygwin/fhandler_virtual.cc b/winsup/cygwin/fhandler_virtual.cc
index 59bb676..af73dde 100644
--- a/winsup/cygwin/fhandler_virtual.cc
+++ b/winsup/cygwin/fhandler_virtual.cc
@@ -77,7 +77,6 @@ fhandler_virtual::opendir (int fd)
if (fd >= 0)
{
dir->__d_fd = fd;
- res = dir;
dir->__fh = this;
res = dir;
}