From 9cec3d45aa1e7c7b3aed4559aa8bef57d24612d9 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 21 Feb 2000 05:20:38 +0000 Subject: Respond to a multitude of g++ warnings. --- winsup/cygwin/fhandler.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'winsup/cygwin/fhandler.cc') diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index c0f0ed74d..a7014e132 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -84,7 +84,7 @@ fhandler_base::eat_readahead (int n) n = ralen; if (n > 0 && ralen) { - if ((ralen -= n) < 0) + if ((int) (ralen -= n) < 0) ralen = 0; if (raixget >= ralen) @@ -1059,14 +1059,14 @@ fhandler_base::dup (fhandler_base *child) /* Base terminal handlers. These just return errors. */ int -fhandler_base::tcflush (int queue) +fhandler_base::tcflush (int) { set_errno (ENOTTY); return -1; } int -fhandler_base::tcsendbreak (int duration) +fhandler_base::tcsendbreak (int) { set_errno (ENOTTY); return -1; @@ -1080,28 +1080,28 @@ fhandler_base::tcdrain (void) } int -fhandler_base::tcflow (int action) +fhandler_base::tcflow (int) { set_errno (ENOTTY); return -1; } int -fhandler_base::tcsetattr (int a, const struct termios *t) +fhandler_base::tcsetattr (int, const struct termios *) { set_errno (ENOTTY); return -1; } int -fhandler_base::tcgetattr (struct termios *t) +fhandler_base::tcgetattr (struct termios *) { set_errno (ENOTTY); return -1; } int -fhandler_base::tcsetpgrp (const pid_t pid) +fhandler_base::tcsetpgrp (const pid_t) { set_errno (ENOTTY); return -1; @@ -1293,7 +1293,7 @@ fhandler_disk_file::lock (int cmd, struct flock *fl) startpos = 0; break; case SEEK_CUR: - if ((startpos = lseek (0, SEEK_CUR)) < 0) + if ((off_t) (startpos = lseek (0, SEEK_CUR)) == (off_t)-1) return -1; break; case SEEK_END: @@ -1453,7 +1453,7 @@ fhandler_pipe::lseek (off_t offset, int whence) } void __stdcall -set_inheritance (HANDLE &h, int not_inheriting, const char *name) +set_inheritance (HANDLE &h, int not_inheriting, const char *) { HANDLE newh; -- cgit v1.2.3