From 846397c692ff1dd865073c4e278ecedc1323e6d3 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 19 Oct 2019 15:44:40 +0200 Subject: [PATCH] Fix compil warning --- common/plotters/GERBER_plotter.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/plotters/GERBER_plotter.cpp b/common/plotters/GERBER_plotter.cpp index 03655dd92d..624065c555 100644 --- a/common/plotters/GERBER_plotter.cpp +++ b/common/plotters/GERBER_plotter.cpp @@ -910,10 +910,7 @@ void GERBER_PLOTTER::FlashPadRoundRect( const wxPoint& aPadPos, const wxSize& aS EDA_DRAW_MODE_T aTraceMode, void* aData ) { - GBR_METADATA* gbr_metadata; - - if( aData ) - gbr_metadata = static_cast( aData ); + GBR_METADATA* gbr_metadata = static_cast( aData ); // Currently, a Pad RoundRect is plotted as polygon. // TODO: use Aperture macro and flash it