diff options
author | Christopher Faylor <me@cgf.cx> | 2008-09-11 05:43:11 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2008-09-11 05:43:11 +0000 |
commit | cb7e1879ee3a55c91b8c85e6d2f879f392a2c995 (patch) | |
tree | a6372a249cab116d593cd12cd47788d8a9f057cf /winsup/cygwin/sched.cc | |
parent | 81ba2b77dee701a135e6f075f1798a76a41bbad7 (diff) | |
download | cygnal-cb7e1879ee3a55c91b8c85e6d2f879f392a2c995.tar.gz cygnal-cb7e1879ee3a55c91b8c85e6d2f879f392a2c995.tar.bz2 cygnal-cb7e1879ee3a55c91b8c85e6d2f879f392a2c995.zip |
* localtime.cc (increment_overflow): Mark as non-inline to prevent compiler
from complaining about the very thing we're trying to test.
* ntea.cc (read_ea): Reorganize to avoid a new compiler warning/error.
* sched.cc (sched_rr_get_interval): Ditto.
* select.cc (peek_serial): Ditto.
* libc/rexec.cc (ruserpass): Ditto.
* posix_ipc.cc (ipc_names): Make static to avoid a compiler warning
(and it's the right thing to do anyway).
Diffstat (limited to 'winsup/cygwin/sched.cc')
-rw-r--r-- | winsup/cygwin/sched.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/sched.cc b/winsup/cygwin/sched.cc index d894bf051..08f96833b 100644 --- a/winsup/cygwin/sched.cc +++ b/winsup/cygwin/sched.cc @@ -295,7 +295,7 @@ sched_rr_get_interval (pid_t pid, struct timespec *interval) qindex = 0; vfindex = ((prisep >> 2) & 3) % 3; if (vfindex == 0) - vfindex = wincap.is_server () || prisep & 3 == 0 ? 1 : 0; + vfindex = wincap.is_server () || (prisep & 3) == 0 ? 1 : 0; else vfindex -= 1; slindex = ((prisep >> 4) & 3) % 3; |