Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

calcv3: cygwin: getopt related externs generate warning about attributes #190

@SirWumpus

Description

@SirWumpus
errtbl.c: In function ‘main’:
errtbl.c:2151:18: warning: ‘optarg’ redeclared without dllimport attribute: previous dllimport
ignored [-Wattributes]
 2151 |     extern char *optarg; /* argv index of the next arg */
      |                  ^~~~~~
errtbl.c:2152:16: warning: ‘optind’ redeclared without dllimport attribute: previous dllimport
ignored [-Wattributes]
 2152 |     extern int optind;   /* argv index of the next arg */
      |                ^~~~~~

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions