Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: portej05 on May 10, 2009, 07:25:33 am

Title: Compile Issues in latest SVN
Post by: portej05 on May 10, 2009, 07:25:33 am
Hi all,

Some folks (those using GCC) may have a compile issue along the lines of
Code: [Select]
hud/hudtarget.cpp:3012: error: jump to label 'ttt_fail'                                                                                                                                                                                                                       
hud/hudtarget.cpp:2987: error:   from here                                                                                                                                                                                                                                   
hud/hudtarget.cpp:2990: error:   crosses initialization of 'object* tt_objp'                                                                                                                                                                                                 
hud/hudtarget.cpp:3012: error: jump to label 'ttt_fail'                                                                                                                                                                                                                       
hud/hudtarget.cpp:2983: error:   from here                                                                                                                                                                                                                                   
hud/hudtarget.cpp:2990: error:   crosses initialization of 'object* tt_objp'                                                                                                                                                                                                 
hud/hudtarget.cpp:3012: error: jump to label 'ttt_fail'                                                                                                                                                                                                                       
hud/hudtarget.cpp:2978: error:   from here                                                                                                                                                                                                                                   
hud/hudtarget.cpp:2990: error:   crosses initialization of 'object* tt_objp'                                                                                                                                                                                                 
hud/hudtarget.cpp:3012: error: jump to label 'ttt_fail'                                                                                                                                                                                                                       
hud/hudtarget.cpp:2973: error:   from here                                                                                                                                                                                                                                   
hud/hudtarget.cpp:2990: error:   crosses initialization of 'object* tt_objp'                                                                                                                                                                                                 
hud/hudtarget.cpp: In function 'void hud_target_subsystem_in_reticle()':

with the latest SVN (5217).
Just move the definition of object* tt_objp to the start of the function to fix (obviously, keep tt_objp = &Objects[tt_objnum] where it is, though!)

Enjoy!
Title: Re: Compile Issues in latest SVN
Post by: karajorma on May 10, 2009, 07:59:32 am
Fixed.