From 66dd3ca6ce4caa91421aa08c706dc02c044dc120 Mon Sep 17 00:00:00 2001 From: Rahul Chaudhry <rahulchaudhry@google.com> Date: Wed, 12 Oct 2016 12:19:48 -0700 Subject: [PATCH] fc_sort: cleanup warnings caught by clang tidy / static analyzer. Value stored to 'i' is never read. Variable 'j' is never used. Bug: 26936282 Test: WITH_TIDY=1 WITH_STATIC_ANALYZER=1 mm Change-Id: I8dd266e639d089efd1fb1e1e0fca3899cf2a1553 --- tools/fc_sort/fc_sort.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/fc_sort/fc_sort.c b/tools/fc_sort/fc_sort.c index f4d2cd0b8..5561288ad 100644 --- a/tools/fc_sort/fc_sort.c +++ b/tools/fc_sort/fc_sort.c @@ -315,7 +315,7 @@ int main(int argc, char *argv[]) { int lines; size_t start, finish, regex_len, context_len; - size_t line_len, buf_len, i, j; + size_t line_len, buf_len, i; char *input_name, *output_name, *line_buf; file_context_node_t *temp; @@ -336,7 +336,7 @@ int main(int argc, char *argv[]) input_name = argv[1]; output_name = (argc >= 3) ? argv[2] : NULL; - i = j = lines = 0; + lines = 0; /* Open the input file. */ if (!(in_file = fopen(input_name, "r"))) { -- GitLab