Commit 6ed78f5b authored by f3nix's avatar f3nix

Compiler warnings fixes.

parent 9bab41e4
...@@ -105,8 +105,9 @@ int SetQueue (int r,int c,int side,int d,int a,int r2,int c2 ) ...@@ -105,8 +105,9 @@ int SetQueue (int r,int c,int side,int d,int a,int r2,int c2 )
0 si defaut allocation Memoire 0 si defaut allocation Memoire
*/ */
{ {
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 */
{ {
......
...@@ -1431,6 +1431,7 @@ void CPolyLine::AddContourForPadClearance( int type, int x, int y, int w, ...@@ -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 )
......
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