← Back to team overview

kicad-developers team mailing list archive

compil warning in eagle plugin.

 

Could a Eagle guru have a look into the code creating this compil warning:

F:/kicad-launchpad/zone_on_grid/pcbnew/eagle_plugin.cpp:1811:50: warning: 'radius' may be used
uninitialized in this function [-Wmaybe-uninitialized]
                         wxPoint end( int( radius * cos( end_angle + angle ) + center.x ),
                                           ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
F:/kicad-launchpad/zone_on_grid/pcbnew/eagle_plugin.cpp:1812:55: warning: 'end_angle' may be used
uninitialized in this function [-Wmaybe-uninitialized]
                                      int( radius * sin( end_angle + angle ) + center.y ) );

It looks to me these variables are really used without initialization is some cases.

Thanks.

-- 
Jean-Pierre CHARRAS


Follow ups