]> git.refcnt.org Git - colorize.git/commitdiff
Omit declaration of optind/optarg master
authorSteven Schubiger <stsc@refcnt.org>
Mon, 13 Jun 2022 20:15:59 +0000 (22:15 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Mon, 13 Jun 2022 20:15:59 +0000 (22:15 +0200)
fixes: warning: ‘optind’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
fixes: warning: ‘optarg’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]

https://github.com/stsc/colorize/issues/1

Thanks Stephan Jauernick

colorize.c

index 456611223623f182106f63278ffc914778701d0c..a1e13983bc24a6563cdc10927d048d8d4fc2da7f 100644 (file)
@@ -359,8 +359,6 @@ static void vfprintf_fail (const char *, ...);
 static void stack (struct var_list **, unsigned int *, unsigned int, void *, enum var_type);
 static void release (struct var_list *, unsigned int, void **);
 
-extern int optind;
-
 int
 main (int argc, char **argv)
 {
@@ -513,8 +511,6 @@ print_tstamp (FILE *log)
     print_version ();        \
     exit (EXIT_SUCCESS);
 
-extern char *optarg;
-
 static void
 process_opts (int argc, char **argv, char **conf_file)
 {