Re: [Vala] Problem with switch statment
- From: Jürg Billeter <j bitron ch>
- To: Nicolas <c r n a wanadoo fr>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Problem with switch statment
- Date: Mon, 28 Sep 2009 10:44:50 +0200
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]