From 6ed78f5b161ecb0ce35d2392f4c027d1da28700d Mon Sep 17 00:00:00 2001 From: f3nix Date: Thu, 1 May 2008 17:12:38 +0000 Subject: [PATCH] Compiler warnings fixes. --- pcbnew/queue.cpp | 5 +++-- polygon/PolyLine.cpp | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pcbnew/queue.cpp b/pcbnew/queue.cpp index 26635a3757..29a617e456 100644 --- a/pcbnew/queue.cpp +++ b/pcbnew/queue.cpp @@ -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 */ { -struct PcbQueue *p, *q, *t; -int i, j; + struct PcbQueue *p, *q, *t; + int i, j; + j = 0; // gcc warning fix if( (p = Save) != NULL ) /* try free list first */ { diff --git a/polygon/PolyLine.cpp b/polygon/PolyLine.cpp index b98b26d6c0..0656cef9c4 100644 --- a/polygon/PolyLine.cpp +++ b/polygon/PolyLine.cpp @@ -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 start_angle = asin( spoke_w/(2.0*r) ); double th1, th2, corner_x, corner_y; + th1 = th2 = corner_x = corner_y = 0; // gcc warning fix for( int i=0; i<4; i++ ) { if( i == 0 )