Fix compil warnings

This commit is contained in:
jean-pierre charras 2024-10-13 17:28:44 +02:00
parent c799966774
commit e8d89b1327
2 changed files with 7 additions and 4 deletions

View File

@ -878,8 +878,13 @@ public:
TEXT_AND_ICON_LAYOUT( KIGFX::GAL& aGal, const TEXT_ATTRIBUTES& aAttrs,
const KIFONT::METRICS& aFontMetrics, const double aShadowWidth,
const double aIconSize = 0 ) :
m_gal( aGal ), m_attrs( aAttrs ), m_fontMetrics( aFontMetrics ),
m_iconSize( aIconSize ), m_iconGap( aIconSize / 4.0 ), m_shadowWidth( aShadowWidth )
m_gal( aGal ),
m_attrs( aAttrs ),
m_fontMetrics( aFontMetrics ),
m_iconSize( aIconSize ),
m_iconGap( aIconSize / 4.0 ),
m_shadowWidth( aShadowWidth ),
m_shadowOffset( 0.0 )
{
// Due to the fact a shadow text in position INSIDE or OUTSIDE is drawn left or right aligned,
// it needs an offset = shadowWidth/2 to be drawn at the same place as normal text

View File

@ -3502,8 +3502,6 @@ int DRAWING_TOOL::DrawVia( const TOOL_EVENT& aEvent )
bool hasDRCViolation( PCB_VIA* aVia, BOARD_ITEM* aOther )
{
PCB_LAYER_ID activeLayer = m_frame->GetActiveLayer();
DRC_CONSTRAINT constraint;
int clearance;
BOARD_CONNECTED_ITEM* connectedItem = dynamic_cast<BOARD_CONNECTED_ITEM*>( aOther );