FIX: ignore wxImage's waring in release build

Change-Id: I4f250fdb64c98edfa76d3f19c5b60096488e1d87
This commit is contained in:
chunmao.guo 2022-11-03 10:39:57 +08:00 committed by Lane.Wei
parent 13ca93adc8
commit 1068baf10e
1 changed files with 3 additions and 0 deletions

View File

@ -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