[libsoup] Fix a warning (again)
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Fix a warning (again)
- Date: Tue, 25 Jan 2011 17:20:50 +0000 (UTC)
commit 6a0eae72b5c6b76fb1d77fcf4c7c26a7598ae6aa
Author: Dan Winship <danw gnome org>
Date: Tue Jan 25 12:18:57 2011 -0500
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 files 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++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]