Re: [Vala] Problem with switch statment



On Sun, 2009-09-27 at 20:23 +0200, Nicolas wrote:
My function work but i have this message when building:

treeview.gs:143.9-158.13: warning: unreachable code detected

I assume the reason for this is that the Genie parser just always
appends a break statement even if you have, for example, a return
statement right at the end of the block. So, from the control flow
analyzer, that inserted break statement may be unreachable.

This will need an exception in the flow analyzer for generated
statements or something like that.

Jürg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]