Fix MSVC C4840 warning

va_start requires trivially copy able classes.

wxString is not trivial. The correct thing to do is to use wxChar*
This commit is contained in:
Marek Roszko 2023-04-16 07:35:00 -04:00
parent 140f76b870
commit dd1c58dcf5
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ bool DRC_TEST_PROVIDER::reportPhase( const wxString& aMessage )
}
void DRC_TEST_PROVIDER::reportAux( wxString fmt, ... )
void DRC_TEST_PROVIDER::reportAux( const wxChar* fmt, ... )
{
va_list vargs;
va_start( vargs, fmt );

View File

@ -103,7 +103,7 @@ protected:
int forEachGeometryItem( const std::vector<KICAD_T>& aTypes, LSET aLayers,
const std::function<bool(BOARD_ITEM*)>& aFunc );
virtual void reportAux( wxString fmt, ... );
virtual void reportAux( const wxChar* fmt, ... );
virtual void reportViolation( std::shared_ptr<DRC_ITEM>& item, const VECTOR2I& aMarkerPos,
int aMarkerLayer );
virtual bool reportProgress( int aCount, int aSize, int aDelta );