From b9e165b90a7057697d1062024f5c329465a52cf9 Mon Sep 17 00:00:00 2001 From: Isaiah Norton Date: Sat, 4 Apr 2015 10:46:07 -0400 Subject: [PATCH] fix #10727: disable depwarn in imaging mode --- src/ast.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ast.c b/src/ast.c index b45ee71d3dc06..23f7c1a4db83d 100644 --- a/src/ast.c +++ b/src/ast.c @@ -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)