From cd1f3acf49a9b78297dff1e88f0faa68fc482454 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 28 Dec 2019 08:43:29 +0100 Subject: [PATCH] Fix compil warnings --- pcbnew/kicad_plugin.cpp | 5 +++-- pcbnew/pcb_plot_params.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pcbnew/kicad_plugin.cpp b/pcbnew/kicad_plugin.cpp index 459d67a560..c31d7628cd 100644 --- a/pcbnew/kicad_plugin.cpp +++ b/pcbnew/kicad_plugin.cpp @@ -1108,7 +1108,8 @@ void PCB_IO::format( MODULE* aModule, int aNestLevel ) const FormatInternalUnits( aModule->GetLocalClearance() ).c_str() ); if( aModule->GetZoneConnection() != ZONE_CONNECTION::INHERITED ) - m_out->Print( aNestLevel+1, "(zone_connect %d)\n", aModule->GetZoneConnection() ); + m_out->Print( aNestLevel+1, "(zone_connect %d)\n", + static_cast( aModule->GetZoneConnection() ) ); if( aModule->GetThermalWidth() != 0 ) m_out->Print( aNestLevel+1, "(thermal_width %s)\n", @@ -1431,7 +1432,7 @@ void PCB_IO::format( D_PAD* aPad, int aNestLevel ) const StrPrintf( &output, " (clearance %s)", FormatInternalUnits( aPad->GetLocalClearance() ).c_str() ); if( aPad->GetZoneConnection() != ZONE_CONNECTION::INHERITED ) - StrPrintf( &output, " (zone_connect %d)", aPad->GetZoneConnection() ); + StrPrintf( &output, " (zone_connect %d)", static_cast( aPad->GetZoneConnection() ) ); if( aPad->GetThermalWidth() != 0 ) StrPrintf( &output, " (thermal_width %s)", FormatInternalUnits( aPad->GetThermalWidth() ).c_str() ); diff --git a/pcbnew/pcb_plot_params.cpp b/pcbnew/pcb_plot_params.cpp index 258700e94f..0adf8046d0 100644 --- a/pcbnew/pcb_plot_params.cpp +++ b/pcbnew/pcb_plot_params.cpp @@ -215,7 +215,7 @@ void PCB_PLOT_PARAMS::Format( OUTPUTFORMATTER* aFormatter, aFormatter->Print( aNestLevel+1, "(%s %s)\n", getTokenName( T_subtractmaskfromsilk ), m_subtractMaskFromSilk ? trueStr : falseStr ); aFormatter->Print( aNestLevel+1, "(%s %d)\n", getTokenName( T_outputformat ), - m_format ); + static_cast( m_format ) ); aFormatter->Print( aNestLevel+1, "(%s %s)\n", getTokenName( T_mirror ), m_mirror ? trueStr : falseStr ); aFormatter->Print( aNestLevel+1, "(%s %d)\n", getTokenName( T_drillshape ),