Fix compilation errors/warnings when using g++ 4.3 (snapshot).
This commit is contained in:
parent
7559e1347c
commit
ad55799485
|
@ -6,6 +6,7 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
#include <algorithm> // sort
|
||||
#include <vector>
|
||||
|
||||
#include "common.h"
|
||||
|
|
|
@ -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…
Reference in New Issue