]> git.refcnt.org Git - colorize.git/commitdiff
Silence warnings under -pedantic
authorSteven Schubiger <stsc@refcnt.org>
Sun, 5 Jan 2014 12:31:52 +0000 (13:31 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Sun, 5 Jan 2014 12:31:52 +0000 (13:31 +0100)
colorize.c

index 9a5646f30b587b985a51740c3c56f139d945e0f3..d174a11caa2709eaf694d245d99bb8cdc4e15ba8 100644 (file)
@@ -211,6 +211,8 @@ static void release_var (void **, unsigned int, void **);
 extern char *optarg;
 extern int optind;
 
+static int opt_type = 0;
+
 int
 main (int argc, char **argv)
 {
@@ -224,7 +226,7 @@ main (int argc, char **argv)
         OPT_VERSION
     };
 
-    int opt, opt_type = 0;
+    int opt;
     struct option long_opts[] = {
         { "clean",          no_argument,       &opt_type, OPT_CLEAN          },
         { "clean-all",      no_argument,       &opt_type, OPT_CLEAN_ALL      },