From 1068baf10e62766df9163ce2dbca48170873a66b Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Thu, 3 Nov 2022 10:39:57 +0800 Subject: [PATCH] FIX: ignore wxImage's waring in release build Change-Id: I4f250fdb64c98edfa76d3f19c5b60096488e1d87 --- src/slic3r/GUI/GUI_App.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 0dcf13006..8906cd9e4 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -1985,6 +1985,9 @@ bool GUI_App::on_init_inner() // Set initialization of image handlers before any UI actions - See GH issue #7469 wxInitAllImageHandlers(); +#ifdef NDEBUG + wxImage::SetDefaultLoadFlags(0); // ignore waring in release build +#endif #if defined(_WIN32) && ! defined(_WIN64) // BBS: remove 32bit build prompt