From 64082aee6a85344cb5f143c9e60f774a9dd06a67 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 20 Oct 2008 10:47:54 +0000 Subject: [PATCH] Remove a variable, which was found by the new, shiny -Wunused-variable. [r23027] --- main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 52fc6c5..629190a 100644 --- a/main.c +++ b/main.c @@ -877,14 +877,12 @@ int main(int argc, char **argv) argument_errors = true; } } else { - filetype_t type = forced_filetype; - const char *filename = arg; + filetype_t type = forced_filetype; if (type == FILETYPE_AUTODETECT) { size_t const len = strlen(arg); if (len < 2 && arg[0] == '-') { /* - implicitly means C source file */ - type = FILETYPE_C; - filename = NULL; + type = FILETYPE_C; } else if (len > 2 && arg[len - 2] == '.') { switch (arg[len - 1]) { case 'c': type = FILETYPE_C; break; -- 2.20.1