From dbb27c9c3ba6cdbc27a6d36a952a82a51dc11407 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 16 Mar 2011 20:21:08 +0000 Subject: [uri] Avoid unused variable warning in gcc 4.6 Reported-by: Ralph Giles Tested-by: Ralph Giles Signed-off-by: Michael Brown --- src/tests/uri_test.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tests/uri_test.c b/src/tests/uri_test.c index fd29d397..c39c7ffe 100644 --- a/src/tests/uri_test.c +++ b/src/tests/uri_test.c @@ -34,7 +34,6 @@ static struct uri_test uri_tests[] = { static int test_parse_unparse ( const char *uri_string ) { char buf[URI_MAX_LEN]; - size_t len; struct uri *uri = NULL; int rc; @@ -44,7 +43,7 @@ static int test_parse_unparse ( const char *uri_string ) { rc = -ENOMEM; goto done; } - len = unparse_uri ( buf, sizeof ( buf ), uri, URI_ALL ); + unparse_uri ( buf, sizeof ( buf ), uri, URI_ALL ); /* Compare result */ if ( strcmp ( buf, uri_string ) != 0 ) { @@ -72,7 +71,6 @@ static int test_resolve ( const char *base_uri_string, struct uri *relative_uri = NULL; struct uri *resolved_uri = NULL; char buf[URI_MAX_LEN]; - size_t len; int rc; /* Parse URIs */ @@ -95,7 +93,7 @@ static int test_resolve ( const char *base_uri_string, } /* Compare result */ - len = unparse_uri ( buf, sizeof ( buf ), resolved_uri, URI_ALL ); + unparse_uri ( buf, sizeof ( buf ), resolved_uri, URI_ALL ); if ( strcmp ( buf, resolved_uri_string ) != 0 ) { printf ( "Resolution of \"%s\"+\"%s\" produced \"%s\"\n", base_uri_string, relative_uri_string, buf ); -- cgit v1.2.3-55-g7522