Browse Source

ccanlint: Remove unused variable

The 'rest' variable in examples_run.c:find_expect() was unused.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
David Gibson 10 years ago
parent
commit
1eadb3a01e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/ccanlint/tests/examples_run.c

+ 1 - 1
tools/ccanlint/tests/examples_run.c

@@ -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)++) {