summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2011-01-25 12:18:57 -0500
committerDan Winship <danw@gnome.org>2011-01-25 12:18:57 -0500
commit6a0eae72b5c6b76fb1d77fcf4c7c26a7598ae6aa (patch)
tree6323c51c0b045b24ceac1404d6947f7524fb4df0
parentb1d9d87385884640426bbc907dcc2568810cb379 (diff)
downloadlibsoup-6a0eae72b5c6b76fb1d77fcf4c7c26a7598ae6aa.tar.gz
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.
-rw-r--r--libsoup/soup-date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsoup/soup-date.c b/libsoup/soup-date.c
index 25bb761f..99ba2f0a 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++;