From: Jürg Billeter Date: Sun, 10 Oct 2010 21:02:17 +0000 (+0200) Subject: codegen: Fix const warnings for temporary variables of method calls X-Git-Tag: 0.11.1~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a8647baac4da04cca09b20ea7e1a72ec703cb08;p=thirdparty%2Fvala.git codegen: Fix const warnings for temporary variables of method calls --- diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala index 540a54ca6..d5f9e4826 100644 --- a/codegen/valaccodemethodcallmodule.vala +++ b/codegen/valaccodemethodcallmodule.vala @@ -806,7 +806,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule { } } - var temp_var = get_temp_variable (result_type); + var temp_var = get_temp_variable (result_type, result_type.value_owned); var temp_ref = get_variable_cexpression (temp_var.name); emit_temp_var (temp_var);