Commit 6ed78f5b authored by f3nix's avatar f3nix
Browse files

Compiler warnings fixes.

parent 9bab41e4
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -107,6 +107,7 @@ int SetQueue (int r,int c,int side,int d,int a,int r2,int c2 )
{
{
    struct PcbQueue *p, *q, *t;
    struct PcbQueue *p, *q, *t;
    int i, j;
    int i, j;
    j = 0; // gcc warning fix


	if( (p = Save) != NULL ) /* try free list first */
	if( (p = Save) != NULL ) /* try free list first */
		{
		{
+1 −0
Original line number Original line Diff line number Diff line
@@ -1431,6 +1431,7 @@ void CPolyLine::AddContourForPadClearance( int type, int x, int y, int w,
			double r = max(w/2 + fill_clearance, hole_w/2 + hole_clearance);
			double r = max(w/2 + fill_clearance, hole_w/2 + hole_clearance);
			double start_angle = asin( spoke_w/(2.0*r) );
			double start_angle = asin( spoke_w/(2.0*r) );
			double th1, th2, corner_x, corner_y;
			double th1, th2, corner_x, corner_y;
			th1 = th2 = corner_x = corner_y = 0; // gcc warning fix
			for( int i=0; i<4; i++ )
			for( int i=0; i<4; i++ )
			{
			{
				if( i == 0 )
				if( i == 0 )