Skip to content

Commit ba67d2e

Browse files
committed
Fix compiler warnings
1 parent 99e466e commit ba67d2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jloptions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
9191
opt_use_compilecache,
9292
opt_incremental
9393
};
94-
static const char const* shortopts = "+vhqFfH:e:E:P:L:J:C:ip:O:";
94+
static const char* const shortopts = "+vhqFfH:e:E:P:L:J:C:ip:O:";
9595
static const struct option longopts[] = {
9696
// exposed command line options
9797
// 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)
165165
case '?':
166166
case ':':
167167
if (optopt) {
168-
for (struct option *o = longopts; o->val; o++) {
168+
for (const struct option *o = longopts; o->val; o++) {
169169
if (optopt == o->val) {
170170
if (o->has_arg == optional_argument) {
171171
c = o->val;

0 commit comments

Comments
 (0)