diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-05-18 17:23:17 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-05-18 17:23:17 +0000 |
commit | 692fccabfbcc7ca9af8a9fa8d2f08f875170d26f (patch) | |
tree | eb4ee85a46343b61ae9f9a14dbc9efbb0993a058 | |
parent | d621341de7cc21830eaa70ec3832336a85ead3f3 (diff) | |
download | newlib-692fccabfbcc7ca9af8a9fa8d2f08f875170d26f.zip newlib-692fccabfbcc7ca9af8a9fa8d2f08f875170d26f.tar.gz newlib-692fccabfbcc7ca9af8a9fa8d2f08f875170d26f.tar.bz2 |
* mmap.cc (mmap64): Avoid compiler warning.
* ntea.cc (NTReadEA): Ditto.
* hires.h (hires_base): Remove useless usecs function.
-rw-r--r-- | winsup/cygwin/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/cygwin/hires.h | 2 | ||||
-rw-r--r-- | winsup/cygwin/mmap.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/ntea.cc | 2 |
4 files changed, 8 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 227f3aa..f9c9527 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,11 @@ 2005-05-18 Corinna Vinschen <corinna@vinschen.de> + * mmap.cc (mmap64): Avoid compiler warning. + * ntea.cc (NTReadEA): Ditto. + * hires.h (hires_base): Remove useless usecs function. + +2005-05-18 Corinna Vinschen <corinna@vinschen.de> + * fhandler_netdrive.cc (fhandler_netdrive::telldir): Remove since it's equivalent to fhandler_virtual::telldir now anyway. * fhandler.h (class fhandler_netdrive): Remove telldir. diff --git a/winsup/cygwin/hires.h b/winsup/cygwin/hires.h index b1b2a68..5dd0cf9 100644 --- a/winsup/cygwin/hires.h +++ b/winsup/cygwin/hires.h @@ -25,8 +25,6 @@ class hires_base { protected: int inited; - public: - virtual LONGLONG usecs (bool justdelta) {return 0LL;} }; class hires_us : hires_base diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc index 1928fed..ec4e3c2 100644 --- a/winsup/cygwin/mmap.cc +++ b/winsup/cygwin/mmap.cc @@ -538,7 +538,7 @@ mmap64 (void *addr, size_t len, int prot, int flags, int fd, _off64_t off) if (flags & MAP_ANONYMOUS) fd = -1; - fhandler_base *fh; + fhandler_base *fh = NULL; /* Get fhandler and convert /dev/zero mapping to MAP_ANONYMOUS mapping. */ if (fd != -1) diff --git a/winsup/cygwin/ntea.cc b/winsup/cygwin/ntea.cc index a195471..f33d822 100644 --- a/winsup/cygwin/ntea.cc +++ b/winsup/cygwin/ntea.cc @@ -88,7 +88,7 @@ NTReadEA (const char *file, const char *attrname, char *attrbuf, int len) HANDLE hFileSource; int eafound = 0; PFILE_FULL_EA_INFORMATION ea, sea; - int easize; + int easize = 0; hFileSource = CreateFile (file, FILE_READ_EA, FILE_SHARE_READ | FILE_SHARE_WRITE, |