aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2022-06-13 22:15:59 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2022-06-13 22:15:59 +0200
commit86eee2131a7dc1d5893f1644e65bf35b18131350 (patch)
tree753aaba729b2ee0e32fde65313b4a0d1060ffebe
parent66783f3f7b3eb4d0c3bfaf4d069e62bf1e4f5174 (diff)
downloadcolorize-86eee2131a7dc1d5893f1644e65bf35b18131350.tar.gz
colorize-86eee2131a7dc1d5893f1644e65bf35b18131350.tar.bz2
Omit declaration of optind/optargHEADmaster
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
-rw-r--r--colorize.c4
1 files changed, 0 insertions, 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)
{