[Scummvm-devel] PS2 #22 : tools : compiler ICE, etc. : must

sunmax at libero.it sunmax at libero.it
Mon Mar 2 22:53:54 CET 2009


---------- Initial Header -----------

>From      : "Willem Jan Palenstijn" wjp at usecode.org
Thanks Willem!

The extra brackets {} did the trick ;-)

One FSNode less on my wanted dead-or-alive list!

Ciao,
 -max



> On Mon, Mar 02, 2009 at 07:12:13AM +0100, sunmax at libero.it wrote:
> > [2]
> > 
> >    OSystem_PS2::makeConfigPath()':
> > ../../../backends/platform/ps2/systemps2.cpp:902: jump to case label
> > ../../../backends/platform/ps2/systemps2.cpp:877:   crosses initialization of `
> 
> The typical way of fixing this error is using extra { }'s in the case,
> like so:
> 
>         switch (a) {
>         case 0: {
>                 int b = a;
>                 std::cout << b << std::endl;
>                 break;
>         }
> 
> -Willem Jan
> 





More information about the Scummvm-devel mailing list