diff options
author | Steven Schubiger <stsc@refcnt.org> | 2022-06-13 22:15:59 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2022-06-13 22:15:59 +0200 |
commit | 86eee2131a7dc1d5893f1644e65bf35b18131350 (patch) | |
tree | 753aaba729b2ee0e32fde65313b4a0d1060ffebe /colorize.c | |
parent | 66783f3f7b3eb4d0c3bfaf4d069e62bf1e4f5174 (diff) | |
download | colorize-86eee2131a7dc1d5893f1644e65bf35b18131350.tar.gz colorize-86eee2131a7dc1d5893f1644e65bf35b18131350.tar.bz2 |
Omit declaration of optind/optarg
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
Diffstat (limited to 'colorize.c')
-rw-r--r-- | colorize.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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) { |