Fix compil warnings.

This commit is contained in:
jean-pierre charras 2023-11-26 14:26:09 +01:00
parent aa760406ba
commit 4a5859cc45
1 changed files with 12 additions and 0 deletions

View File

@ -299,6 +299,10 @@ wxString EDA_UNIT_UTILS::UI::StringFromValue( const EDA_IU_SCALE& aIuScale, EDA_
case EDA_DATA_TYPE::DISTANCE: case EDA_DATA_TYPE::DISTANCE:
value_to_print = ToUserUnit( aIuScale, aUnits, value_to_print ); value_to_print = ToUserUnit( aIuScale, aUnits, value_to_print );
break;
case EDA_DATA_TYPE::UNITLESS:
break;
} }
char buf[50]; char buf[50];
@ -393,6 +397,10 @@ wxString EDA_UNIT_UTILS::UI::MessageTextFromValue( const EDA_IU_SCALE& aIuScale,
case EDA_DATA_TYPE::DISTANCE: case EDA_DATA_TYPE::DISTANCE:
value = ToUserUnit( aIuScale, aUnits, value ); value = ToUserUnit( aIuScale, aUnits, value );
break;
case EDA_DATA_TYPE::UNITLESS:
break;
} }
switch( aUnits ) switch( aUnits )
@ -639,6 +647,10 @@ double EDA_UNIT_UTILS::UI::DoubleValueFromString( const EDA_IU_SCALE& aIuScale,
case EDA_DATA_TYPE::DISTANCE: case EDA_DATA_TYPE::DISTANCE:
dtmp = FromUserUnit( aIuScale, aUnits, dtmp ); dtmp = FromUserUnit( aIuScale, aUnits, dtmp );
break;
case EDA_DATA_TYPE::UNITLESS:
break;
} }
return dtmp; return dtmp;