← Back to team overview

kicad-developers team mailing list archive

[PATCH] Remove unreferenced local variables

 

---
 3d-viewer/3d_canvas/eda_3d_canvas.cpp | 1 -
 pcbnew/footprint_preview_panel.cpp    | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/3d-viewer/3d_canvas/eda_3d_canvas.cpp b/3d-viewer/3d_canvas/eda_3d_canvas.cpp
index ab997426a..0306a9048 100644
--- a/3d-viewer/3d_canvas/eda_3d_canvas.cpp
+++ b/3d-viewer/3d_canvas/eda_3d_canvas.cpp
@@ -603,7 +603,6 @@ void EDA_3D_CANVAS::OnRightClick( wxMouseEvent &event )
     wxPoint     pos;
     wxMenu      PopUpMenu;
     wxString msg;
-    wxMenuItem* item;
 
     pos.x = event.GetX();
     pos.y = event.GetY();
diff --git a/pcbnew/footprint_preview_panel.cpp b/pcbnew/footprint_preview_panel.cpp
index 27602f136..124c82695 100644
--- a/pcbnew/footprint_preview_panel.cpp
+++ b/pcbnew/footprint_preview_panel.cpp
@@ -205,7 +205,7 @@ public:
             if( !aEntry.module )
                 aEntry.status = FPS_NOT_FOUND;
 
-        } catch( const IO_ERROR& ioe )
+        } catch( const IO_ERROR& )
         {
             aEntry.status = FPS_NOT_FOUND;
         }

Follow ups