Skip to content

Commit

Permalink
fix JuliaLang#10727: disable depwarn in imaging mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Apr 4, 2015
1 parent 0e127d4 commit b9e165b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ void jl_init_frontend(void)
fl_jlgensym_sym = symbol("jlgensym");

// Enable / disable syntax deprecation warnings
jl_parse_depwarn((int)jl_options.depwarn);
// Disable in imaging mode to avoid i/o errors (#10727)
if (jl_options.build_path != NULL)
jl_parse_depwarn(0);
else
jl_parse_depwarn((int)jl_options.depwarn);
}

DLLEXPORT void jl_lisp_prompt(void)
Expand Down

0 comments on commit b9e165b

Please sign in to comment.