We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99e466e commit ba67d2eCopy full SHA for ba67d2e
src/jloptions.c
@@ -91,7 +91,7 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
91
opt_use_compilecache,
92
opt_incremental
93
};
94
- static const char const* shortopts = "+vhqFfH:e:E:P:L:J:C:ip:O:";
+ static const char* const shortopts = "+vhqFfH:e:E:P:L:J:C:ip:O:";
95
static const struct option longopts[] = {
96
// exposed command line options
97
// NOTE: This set of required arguments need to be kept in sync
@@ -165,7 +165,7 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
165
case '?':
166
case ':':
167
if (optopt) {
168
- for (struct option *o = longopts; o->val; o++) {
+ for (const struct option *o = longopts; o->val; o++) {
169
if (optopt == o->val) {
170
if (o->has_arg == optional_argument) {
171
c = o->val;
0 commit comments