Better error reporting to try and catch 6635.

This commit is contained in:
Jeff Young 2020-12-12 12:22:52 +00:00
parent 2c2630ef9e
commit 807eef1208
1 changed files with 3 additions and 4 deletions

View File

@ -689,10 +689,9 @@ static bool collideSingleShapes( const SHAPE* aA, const SHAPE* aB, int aClearanc
break; break;
} }
bool unsupported_collision = true; wxFAIL_MSG( wxString::Format( "Unsupported collision: %s with %s",
(void) unsupported_collision; // make gcc quiet SHAPE_TYPE_asString( aA->Type() ),
SHAPE_TYPE_asString( aB->Type() ) ) );
wxASSERT( unsupported_collision == false );
return false; return false;
} }