From 86eee2131a7dc1d5893f1644e65bf35b18131350 Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Mon, 13 Jun 2022 22:15:59 +0200 Subject: Omit declaration of optind/optarg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/colorize.c b/colorize.c index 4566112..a1e1398 100644 --- a/colorize.c +++ b/colorize.c @@ -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) { -- cgit v1.2.3