Remove a bunch of unused variables

gcc does not warn about those, because of the _cleanup_ usage.
clang is smarter here.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-11-01 23:06:44 +01:00
parent 41dfa61d35
commit ac097c841e
8 changed files with 3 additions and 10 deletions
-1
View File
@@ -704,7 +704,6 @@ static void test_read_line_one_file(FILE *f) {
static void test_read_line(void) {
_cleanup_fclose_ FILE *f = NULL;
_cleanup_free_ char *line = NULL;
f = fmemopen((void*) buffer, sizeof(buffer), "re");
assert_se(f);