[Opensim-dev] warning in lsl.lexer.cs (was Re: Please test drive the new LSL compiler)

Mike Mazur mmazur at gmail.com
Sat Jul 5 00:30:56 UTC 2008


Hi,

On Fri, Jul 4, 2008 at 7:20 PM, Dr Scofield <DrScofield at xyzzyxyzzy.net> wrote:
> just noticed that lsl.lexer.cs throws a warning about unreachable code. i've
> commented that out, but i guess that one is machine generated? any chance of
> being a tad smarter about the "return new blablabl; break;" thingy?
> alternatively you could wrap the whole thing in a
>
> #pragma warning disable 0162
> ...
> #pragma warning restore 0162

Yes, I noticed that while working on it and knew you'd notice!

Because it's machine generated I wasn't sure how to disable the
warning. Wrapping it in a pragma works for me.

Apologies!
Mike



More information about the Opensim-dev mailing list