From 6a0eae72b5c6b76fb1d77fcf4c7c26a7598ae6aa Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 25 Jan 2011 12:18:57 -0500 Subject: [PATCH] Fix a warning (again) soup-date uses strtoul() to parse the sub-second portion of an ISO 8601 timestamp (to verify that it's syntactically valid), but then throws that information away. gcc 4.6 is pickier about how we throw it away though. --- libsoup/soup-date.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsoup/soup-date.c b/libsoup/soup-date.c index 25bb761..99ba2f0 100644 --- a/libsoup/soup-date.c +++ b/libsoup/soup-date.c @@ -211,7 +211,7 @@ soup_date_new_from_now (int offset_seconds) static gboolean parse_iso8601_date (SoupDate *date, const char *date_string) { - gulong val, ignored; + gulong val; if (strlen (date_string) < 15) return FALSE; @@ -250,7 +250,7 @@ parse_iso8601_date (SoupDate *date, const char *date_string) return FALSE; if (*date_string == '.' || *date_string == ',') - ignored = strtoul (date_string + 1, (char **)&date_string, 10); + (void) strtoul (date_string + 1, (char **)&date_string, 10); if (*date_string == 'Z') { date_string++; -- 2.7.4