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;
|
using namespace std;
|
||||||
|
|
||||||
|
#include <algorithm> // sort
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
|
@ -130,11 +130,13 @@ void WinEDA_DrillFrame::InitDisplayParams( void )
|
||||||
for( D_PAD* pad = module->m_Pads; pad != NULL; pad = pad->Next() )
|
for( D_PAD* pad = module->m_Pads; pad != NULL; pad = pad->Next() )
|
||||||
{
|
{
|
||||||
if( pad->m_DrillShape == PAD_CIRCLE )
|
if( pad->m_DrillShape == PAD_CIRCLE )
|
||||||
|
{
|
||||||
if( pad->m_Drill.x != 0 )
|
if( pad->m_Drill.x != 0 )
|
||||||
m_PadsHoleCount++;
|
m_PadsHoleCount++;
|
||||||
else
|
else
|
||||||
if( MIN( pad->m_Drill.x, pad->m_Drill.y ) != 0 )
|
if( MIN( pad->m_Drill.x, pad->m_Drill.y ) != 0 )
|
||||||
m_PadsHoleCount++;
|
m_PadsHoleCount++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue