From: Juerg Billeter Date: Sun, 25 Nov 2007 17:07:25 +0000 (+0000) Subject: remove short-living reference warning, too many false positives X-Git-Tag: VALA_0_1_5~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07d24dec8592523117d7d5215422670c19d66576;p=platform%2Fupstream%2Fvala.git remove short-living reference warning, too many false positives 2007-11-25 Juerg Billeter * vala/valasemanticanalyzer.vala: remove short-living reference warning, too many false positives svn path=/trunk/; revision=720 --- diff --git a/ChangeLog b/ChangeLog index 516076e..fd821db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-11-25 Jürg Billeter + * vala/valasemanticanalyzer.vala: remove short-living reference warning, + too many fals positives + +2007-11-25 Jürg Billeter + * vapi/glib-2.0.vapi: add binding for g_chmod * Makefile.am, configure.ac, gen-project/Makefile.am, diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala index 5c9bed5..d3429a8 100644 --- a/vala/valasemanticanalyzer.vala +++ b/vala/valasemanticanalyzer.vala @@ -833,11 +833,6 @@ public class Vala.SemanticAnalyzer : CodeVisitor { return; } - if (stmt.expression.static_type != null && - stmt.expression.static_type.transfers_ownership) { - Report.warning (stmt.source_reference, "Short-living reference"); - } - stmt.tree_can_fail = stmt.expression.tree_can_fail; }