Skip to content

Commit

Permalink
Revert b9e165b
Browse files Browse the repository at this point in the history
see discussion in #16561, deprecations should be flagged, found, and removed
in base - if you need to include code with deprecations in userimg.jl, then
add --depwarn=no manually when building that custom image
  • Loading branch information
tkelman committed May 25, 2016
1 parent d538f29 commit f798cb4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,7 @@ static void jl_init_ast_ctx(jl_ast_context_t *ast_ctx)
jl_ast_ctx(fl_ctx)->slot_sym = symbol(fl_ctx, "slot");

// Enable / disable syntax deprecation warnings
// Disable in imaging mode to avoid i/o errors (#10727)
if (jl_generating_output())
jl_parse_depwarn_(fl_ctx, 0);
else if (jl_options.depwarn == JL_OPTIONS_DEPWARN_ERROR)
if (jl_options.depwarn == JL_OPTIONS_DEPWARN_ERROR)
jl_parse_deperror(fl_ctx, 1);
else
jl_parse_depwarn_(fl_ctx, (int)jl_options.depwarn);
Expand Down

0 comments on commit f798cb4

Please sign in to comment.