@@ -74,7 +74,8 @@ static const char *opts =
74
74
" --check-bounds={yes|no} Emit bounds checks always or never (ignoring declarations)\n"
75
75
" -O, --optimize Run time-intensive code optimizations\n"
76
76
" --int-literals={32|64} Select integer literal size independent of platform\n"
77
- " --dump-bitcode={yes|no} Dump bitcode for the system image (used with --build)\n" ;
77
+ " --dump-bitcode={yes|no} Dump bitcode for the system image (used with --build)\n"
78
+ " --depwarn={yes|no} Enable or disable syntax and method deprecation warnings\n" ;
78
79
79
80
void parse_opts (int * argcp , char * * * argvp )
80
81
{
@@ -93,6 +94,7 @@ void parse_opts(int *argcp, char ***argvp)
93
94
{ "int-literals" , required_argument , 0 , 301 },
94
95
{ "dump-bitcode" , required_argument , 0 , 302 },
95
96
{ "compile" , required_argument , 0 , 303 },
97
+ { "depwarn" , required_argument , 0 , 304 },
96
98
{ 0 , 0 , 0 , 0 }
97
99
};
98
100
int c ;
@@ -186,6 +188,16 @@ void parse_opts(int *argcp, char ***argvp)
186
188
exit (1 );
187
189
}
188
190
break ;
191
+ case 304 :
192
+ if (!strcmp (optarg ,"yes" ))
193
+ jl_compileropts .depwarn = 1 ;
194
+ else if (!strcmp (optarg ,"no" ))
195
+ jl_compileropts .depwarn = 0 ;
196
+ else {
197
+ ios_printf (ios_stderr , "julia: invalid argument to --depwarn (%s)\n" , optarg );
198
+ exit (1 );
199
+ }
200
+ break ;
189
201
default :
190
202
ios_printf (ios_stderr , "julia: unhandled option -- %c\n" , c );
191
203
ios_printf (ios_stderr , "This is a bug, please report it.\n" );
0 commit comments