From: Christoph Mallon Date: Mon, 20 Oct 2008 10:47:54 +0000 (+0000) Subject: Remove a variable, which was found by the new, shiny -Wunused-variable. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=64082aee6a85344cb5f143c9e60f774a9dd06a67;p=cparser Remove a variable, which was found by the new, shiny -Wunused-variable. [r23027] --- 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;