diff options
author | Juerg Billeter <j@bitron.ch> | 2008-04-14 19:07:37 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-04-14 19:07:37 +0000 |
commit | 89179ce042596bc60ec569a65cb9295324ff22a5 (patch) | |
tree | 56e4bda0beaa2d869adf40eef93e4b407742d7fe /vala/valacodenode.vala | |
parent | 94979a22270adeab75d2bfdb74902591d7385450 (diff) | |
download | vala-89179ce042596bc60ec569a65cb9295324ff22a5.tar.gz |
report warning when using null literal as return expression of method
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: report warning when using null
literal as return expression of method returning non-null value
* */*.vala: fix warnings
svn path=/trunk/; revision=1228
Diffstat (limited to 'vala/valacodenode.vala')
-rw-r--r-- | vala/valacodenode.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valacodenode.vala b/vala/valacodenode.vala index 05ffa70ce..72184530b 100644 --- a/vala/valacodenode.vala +++ b/vala/valacodenode.vala @@ -106,7 +106,7 @@ public abstract class Vala.CodeNode : Object { * @param name attribute name * @return attribute */ - public Attribute get_attribute (string name) { + public Attribute? get_attribute (string name) { // FIXME: use hash table foreach (Attribute a in attributes) { if (a.name == name) { |