diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-09-04 08:27:03 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-09-04 08:27:03 +0000 |
commit | f9bafa4640b2e24394541c7f26fad61ed908fbe3 (patch) | |
tree | ce6be1413c7c083a30f39ae3a806867b47c62d15 /newlib/libc/time/clock.c | |
parent | 4a9103c4100893d3e9e55f96b31434d17f06666d (diff) | |
download | cygnal-f9bafa4640b2e24394541c7f26fad61ed908fbe3.tar.gz cygnal-f9bafa4640b2e24394541c7f26fad61ed908fbe3.tar.bz2 cygnal-f9bafa4640b2e24394541c7f26fad61ed908fbe3.zip |
* libc/time/clock.c (clock): Fix warnings about signed-unsigned
comparisons.
* libc/time/strftime.c (strftime): Likewise.
* libc/time/strptime.c (match_string): Fix warning about discarding
'restrict' qualifier from pointer target type.
Diffstat (limited to 'newlib/libc/time/clock.c')
-rw-r--r-- | newlib/libc/time/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/time/clock.c b/newlib/libc/time/clock.c index 64cf438fb..0bcfbb6d3 100644 --- a/newlib/libc/time/clock.c +++ b/newlib/libc/time/clock.c @@ -59,7 +59,7 @@ clock () struct tms tim_s; clock_t res; - if ((res = (clock_t) _times_r (_REENT, &tim_s)) != -1) + if ((res = (clock_t) _times_r (_REENT, &tim_s)) != (clock_t) -1) res = (clock_t) (tim_s.tms_utime + tim_s.tms_stime + tim_s.tms_cutime + tim_s.tms_cstime); |