From 7e6829e834db5f982924c7ec218c08db7b4d4a46 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 12 Feb 2022 11:43:38 +0100 Subject: [PATCH] Fix minor compil warnings --- eeschema/lib_pin.cpp | 4 ++-- eeschema/lib_shape.cpp | 2 +- eeschema/sch_textbox.cpp | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/eeschema/lib_pin.cpp b/eeschema/lib_pin.cpp index b6e8ceaf8e..6b5da03933 100644 --- a/eeschema/lib_pin.cpp +++ b/eeschema/lib_pin.cpp @@ -730,11 +730,11 @@ void LIB_PIN::PlotPinTexts( PLOTTER* aPlotter, const VECTOR2I& aPinPos, int aPin } auto plotText = - [&]( int x, int y, const COLOR4D& color, const wxString& text, const EDA_ANGLE& angle, + [&]( int px, int py, const COLOR4D& color, const wxString& text, const EDA_ANGLE& angle, int size, GR_TEXT_H_ALIGN_T hJustify, GR_TEXT_V_ALIGN_T vJustify, int penWidth ) { - aPlotter->Text( VECTOR2I( x, y ), color, text, angle, VECTOR2I( size, size ), + aPlotter->Text( VECTOR2I( px, py ), color, text, angle, VECTOR2I( size, size ), hJustify, vJustify, penWidth, false, false, false, GetDrawFont() ); }; diff --git a/eeschema/lib_shape.cpp b/eeschema/lib_shape.cpp index bc213e718c..af259ca468 100644 --- a/eeschema/lib_shape.cpp +++ b/eeschema/lib_shape.cpp @@ -148,7 +148,7 @@ void LIB_SHAPE::Plot( PLOTTER* aPlotter, bool aBackground, const VECTOR2I& aOffs int penWidth; COLOR4D color; - FILL_T fill; + FILL_T fill = m_fill; if( aBackground ) { diff --git a/eeschema/sch_textbox.cpp b/eeschema/sch_textbox.cpp index 7cd529b99d..adc54783fc 100644 --- a/eeschema/sch_textbox.cpp +++ b/eeschema/sch_textbox.cpp @@ -334,7 +334,6 @@ void SCH_TEXTBOX::Plot( PLOTTER* aPlotter, bool aBackground ) const RENDER_SETTINGS* settings = aPlotter->RenderSettings(); KIFONT::FONT* font = GetDrawFont(); int penWidth = GetPenWidth(); - FILL_T fill = m_fill; COLOR4D color = settings->GetLayerColor( LAYER_NOTES ); if( penWidth > 0 )