Commit 08467e09 authored by f3nix's avatar f3nix

Kill compiler warnings.

parent f7e9f2c0
......@@ -311,6 +311,7 @@ EDA_Rect SCH_HIERLABEL::GetBoundingBox()
x = m_Pos.x;
y = m_Pos.y;
dx = dy = 0;
height = m_Size.y + 2*TXTMARGE;
length = ( Pitch() * GetLength() ) + height + 2*DANGLING_SYMBOL_SIZE; // add height for triangular shapes
......@@ -520,6 +521,7 @@ EDA_Rect SCH_GLOBALLABEL::GetBoundingBox()
x = m_Pos.x;
y = m_Pos.y;
dx = dy = 0;
height = m_Size.y + 2*TXTMARGE;
length = ( Pitch() * GetLength() ) + 2* height + 2*DANGLING_SYMBOL_SIZE; // add 2*height for triangular shapes (bidirectional)
......@@ -569,6 +571,7 @@ EDA_Rect SCH_TEXT::GetBoundingBox()
y = m_Pos.y;
length = ( Pitch() * GetLength() );
height = m_Size.y;
dx = dy = 0;
switch( m_Orient ) // respect orientation
{
......
......@@ -183,12 +183,12 @@ local void init_linkedlist(ll)
ll->first_block = ll->last_block = NULL;
}
local void free_linkedlist(ll)
linkedlist_data* ll;
{
free_datablock(ll->first_block);
ll->first_block = ll->last_block = NULL;
}
// local void free_linkedlist(ll)
// linkedlist_data* ll;
// {
// free_datablock(ll->first_block);
// ll->first_block = ll->last_block = NULL;
// }
local int add_data_in_datablock(ll,buf,len)
......
......@@ -1130,6 +1130,9 @@ void gpc_polygon_clip(gpc_op op, gpc_polygon *subj, gpc_polygon *clip,
int vclass, bl, br, tl, tr;
double *sbt= NULL, xb, px, yb, yt, dy, ix, iy;
contributing = bl = br = tl = tr = 0;
yt = dy = 0;
/* Test for trivial NULL result cases */
if (((subj->num_contours == 0) && (clip->num_contours == 0))
|| ((subj->num_contours == 0) && ((op == GPC_INT) || (op == GPC_DIFF)))
......@@ -1791,6 +1794,10 @@ void gpc_tristrip_clip(gpc_op op, gpc_polygon *subj, gpc_polygon *clip,
int vclass, bl, br, tl, tr;
double *sbt= NULL, xb, px, nx, yb, yt, dy, ix, iy;
cf = NULL;
contributing = bl = br = tl = tr = 0;
yt = dy = 0;
/* Test for trivial NULL result cases */
if (((subj->num_contours == 0) && (clip->num_contours == 0))
|| ((subj->num_contours == 0) && ((op == GPC_INT) || (op == GPC_DIFF)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment