summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2011-10-04 09:44:04 +0300
committerTor Lillqvist <tlillqvist@suse.com>2011-10-04 10:27:00 +0300
commit9a113a7d931f140b6a8e7f57937d51063244b1c8 (patch)
treed9f5b517c03f9420d93a81dafdba3f4783d197cb
parentb558502c96a779e9bd46b71903c7537da0d07f17 (diff)
WaE: unreachable code, we always return in preceding code
-rw-r--r--tools/source/fsys/dirent.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index c27de5f788cd..95fcd3278fa1 100644
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -2084,7 +2084,13 @@ FSysError DirEntry::MoveTo( const DirEntry& rNewName ) const
}
#endif
#endif
+
+// For the WNT case we always return already above, so avoid warning
+// C4702: unreachable code. Possibly also in non-WNT cases we always
+// return already above, but gcc apparently doesn't mind.
+#ifndef WNT
return ERRCODE_NONE;
+#endif
}
#endif