]> git.ozlabs.org Git - ccan/commitdiff
ccanlint: Remove unused variable
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 27 Jan 2016 12:06:05 +0000 (23:06 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 27 Jan 2016 12:06:05 +0000 (23:06 +1100)
The 'rest' variable in examples_run.c:find_expect() was unused.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
tools/ccanlint/tests/examples_run.c

index 3bdb655efcfb2fc3609392c0fef231ec8dff16d9..8ea6a9bf515806fa58e22bbe480c96e8b4065460 100644 (file)
@@ -86,7 +86,7 @@ static char *find_expect(struct ccan_file *file,
                         bool *contains, bool *whitespace, bool *error,
                         unsigned *line)
 {
-       char *rest, *expect;
+       char *expect;
 
        *error = false;
        for (; lines[*line]; (*line)++) {