Remove a variable, which was found by the new, shiny -Wunused-variable.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 20 Oct 2008 10:47:54 +0000 (10:47 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 20 Oct 2008 10:47:54 +0000 (10:47 +0000)
[r23027]

main.c

diff --git a/main.c b/main.c
index 52fc6c5..629190a 100644 (file)
--- 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;