Author Topic: Compile Issues in latest SVN  (Read 1526 times)

0 Members and 1 Guest are viewing this topic.

Compile Issues in latest SVN
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!
« Last Edit: May 10, 2009, 07:29:54 am by portej05 »
STRONGTEA. Why can't the x86 be sane?

  

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Compile Issues in latest SVN
Fixed.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]