From 98d15bdfc7ae70f89f58d46b1727aed19ceaf387 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 29 Dec 2015 16:04:45 +0100 Subject: fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/parse_time.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/parse_time.c') 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); -- cgit v1.2.3-70-g09d2