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

Willem Jan Palenstijn wjp at usecode.org
Mon Mar 2 09:54:40 CET 2009


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