Browse Source

Fix compilation errors/warnings when using g++ 4.3 (snapshot).

pull/1/head
f3nix 18 years ago
parent
commit
ad55799485
  1. 1
      pcbnew/gen_holes_and_tools_lists_for_drill.cpp
  2. 2
      pcbnew/gendrill.cpp

1
pcbnew/gen_holes_and_tools_lists_for_drill.cpp

@ -6,6 +6,7 @@
using namespace std;
#include <algorithm> // sort
#include <vector>
#include "common.h"

2
pcbnew/gendrill.cpp

@ -130,11 +130,13 @@ void WinEDA_DrillFrame::InitDisplayParams( void )
for( D_PAD* pad = module->m_Pads; pad != NULL; pad = pad->Next() )
{
if( pad->m_DrillShape == PAD_CIRCLE )
{
if( pad->m_Drill.x != 0 )
m_PadsHoleCount++;
else
if( MIN( pad->m_Drill.x, pad->m_Drill.y ) != 0 )
m_PadsHoleCount++;
}
}
}

Loading…
Cancel
Save