Disable sizer asserts in release

This commit is contained in:
Marek Roszko 2023-06-13 07:08:16 -04:00
parent 9ed2458f00
commit 992ed34365
2 changed files with 8 additions and 0 deletions

View File

@ -159,6 +159,10 @@ struct APP_SINGLE_TOP : public wxApp
bool OnInit() override
{
#ifdef NDEBUG
// These checks generate extra assert noise
wxSizerFlags::DisableConsistencyChecks();
#endif
wxDISABLE_DEBUG_SUPPORT();
wxSetAssertHandler( CustomAssertHandler );

View File

@ -431,6 +431,10 @@ struct APP_KICAD : public wxApp
bool OnInit() override
{
#ifdef NDEBUG
// These checks generate extra assert noise
wxSizerFlags::DisableConsistencyChecks();
#endif
wxDISABLE_DEBUG_SUPPORT();
wxSetAssertHandler( CustomAssertHandler );