[vala] Avoid C compiler warning in string switch statements
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Avoid C compiler warning in string switch statements
- Date: Tue, 14 Apr 2009 10:58:57 -0400 (EDT)
commit e9a1c3c5d60c35692785270655dd3b598b2a68d1
Author: Jürg Billeter <j bitron ch>
Date: Tue Apr 14 16:46:46 2009 +0200
Avoid C compiler warning in string switch statements
Fixes bug 505856.
---
gobject/valaccodecontrolflowmodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gobject/valaccodecontrolflowmodule.vala b/gobject/valaccodecontrolflowmodule.vala
index fda6f46..4c2b601 100644
--- a/gobject/valaccodecontrolflowmodule.vala
+++ b/gobject/valaccodecontrolflowmodule.vala
@@ -44,7 +44,7 @@ internal class Vala.CCodeControlFlowModule : CCodeMethodModule {
void visit_string_switch_statement (SwitchStatement stmt) {
// we need a temporary variable to save the property value
- var temp_var = get_temp_variable (stmt.expression.value_type, true, stmt);
+ var temp_var = get_temp_variable (stmt.expression.value_type, false, stmt);
stmt.expression.temp_vars.insert (0, temp_var);
var ctemp = new CCodeIdentifier (temp_var.name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]