From 98dd5a68eb105a2d4c3c2f33deee35ff8ddd948b Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 12 Sep 2025 08:20:49 +0200 Subject: [PATCH] Fix a compil issue on gcc/msys2 gcc does not like implicit conversion from wxString to char* --- pcbnew/drc/drc_engine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/drc/drc_engine.cpp b/pcbnew/drc/drc_engine.cpp index 78422d4f91..56656ebf6b 100644 --- a/pcbnew/drc/drc_engine.cpp +++ b/pcbnew/drc/drc_engine.cpp @@ -542,7 +542,8 @@ void DRC_ENGINE::compileRules() } if( error_semaphore.HasMessageOfSeverity( RPT_SEVERITY_ERROR ) ) - THROW_PARSE_ERROR( wxT( "Parse error" ), rule->m_Name, rule->m_Condition->GetExpression(), 0, 0 ); + THROW_PARSE_ERROR( wxT( "Parse error" ), rule->m_Name, + TO_UTF8( rule->m_Condition->GetExpression() ), 0, 0 ); for( const DRC_CONSTRAINT& constraint : rule->m_Constraints ) {