aboutsummaryrefslogtreecommitdiffstats
path: root/src/parse_time.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-29 16:04:45 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-29 16:04:45 +0100
commit98d15bdfc7ae70f89f58d46b1727aed19ceaf387 (patch)
tree762d155dcd0865a0fda43b70fe490be85beee994 /src/parse_time.c
parentadd build system + add news file + update deps (diff)
downloadsat-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.c7
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);