[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[fluid-dev] Current code overrides getopt.h declarations on Windows
From: |
Carlo Bramini |
Subject: |
[fluid-dev] Current code overrides getopt.h declarations on Windows |
Date: |
Sat, 21 Oct 2017 17:01:55 +0200 (CEST) |
Hello,
when compiling Fluidsynth on Windows, the compiler prints these messages into
the console:
[ 97%] Building C object src/CMakeFiles/fluidsynth.dir/fluidsynth.c.o
/home/Carlo/fluidsynth/src/fluidsynth.c:67:14: warning: 'optarg' redeclared
with out dllimport attribute: previous dllimport ignored [-Wattributes]
extern char *optarg;
^~~~~~
/home/Carlo/fluidsynth/src/fluidsynth.c:68:12: warning: 'optind' redeclared
with out dllimport attribute: previous dllimport ignored [-Wattributes]
extern int optind, opterr, optopt;
^~~~~~
/home/Carlo/fluidsynth/src/fluidsynth.c:68:20: warning: 'opterr' redeclared
with out dllimport attribute: previous dllimport ignored [-Wattributes]
extern int optind, opterr, optopt;
^~~~~~
/home/Carlo/fluidsynth/src/fluidsynth.c:68:28: warning: 'optopt' redeclared
with out dllimport attribute: previous dllimport ignored [-Wattributes]
extern int optind, opterr, optopt;
^~~~~~
and actually it is right, because inside src/fluidsynth.c these variables are
re-declarated and the dllimport attribute applied to them inside getopt.h is
lost.
Is there a particular reason for doing this thing?
Sincerely,
Carlo Bramini.
- [fluid-dev] Current code overrides getopt.h declarations on Windows,
Carlo Bramini <=