diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 16:04:45 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 16:04:45 +0100 |
commit | 98d15bdfc7ae70f89f58d46b1727aed19ceaf387 (patch) | |
tree | 762d155dcd0865a0fda43b70fe490be85beee994 /src/parse_time.c | |
parent | add build system + add news file + update deps (diff) | |
download | sat-98d15bdfc7ae70f89f58d46b1727aed19ceaf387.tar.gz sat-98d15bdfc7ae70f89f58d46b1727aed19ceaf387.tar.bz2 sat-98d15bdfc7ae70f89f58d46b1727aed19ceaf387.tar.xz |
fix warnings
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/parse_time.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parse_time.c b/src/parse_time.c index 323e746..7761557 100644 --- a/src/parse_time.c +++ b/src/parse_time.c @@ -85,10 +85,17 @@ const time_t timemax = (sizeof(time_t) == sizeof(long long int)) ? LLONG_MAX : L static time_t strtotime(const char *str, const char **end) { +#ifdef __GNUC__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wcast-qual" +#endif time_t rc; long long int rcll; long int rcl; char **end_ = (char **)end; +#ifdef __GNUC__ +# pragma GCC diagnostic pop +#endif if (!isdigit(*str)) FAIL(EINVAL); |