From dbc95a3e5329651e6a259e787fe314c9b6fe5b72 Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Fri, 10 Apr 2015 02:23:22 +0000 Subject: [PATCH] Avoid unused assignment --- lib/roken/parse_bytes-test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/roken/parse_bytes-test.c b/lib/roken/parse_bytes-test.c index 3c42cb182..87f2fa898 100644 --- a/lib/roken/parse_bytes-test.c +++ b/lib/roken/parse_bytes-test.c @@ -63,7 +63,6 @@ main(int argc, char **argv) for (i = 0; i < sizeof(tests)/sizeof(tests[0]); ++i) { char buf[256]; int val = parse_bytes (tests[i].str, tests[i].def_unit); - int len; if (val != tests[i].val) { printf ("parse_bytes (%s, %s) = %d != %d\n", @@ -73,7 +72,7 @@ main(int argc, char **argv) ++ret; } if (tests[i].canonicalp) { - len = unparse_bytes (tests[i].val, buf, sizeof(buf)); + (void) unparse_bytes (tests[i].val, buf, sizeof(buf)); if (strcmp (tests[i].str, buf) != 0) { printf ("unparse_bytes (%d) = \"%s\" != \"%s\"\n", tests[i].val, buf, tests[i].str);