summaryrefslogtreecommitdiff
path: root/vala/valavaluetype.vala
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2008-04-14 19:07:37 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-04-14 19:07:37 +0000
commit89179ce042596bc60ec569a65cb9295324ff22a5 (patch)
tree56e4bda0beaa2d869adf40eef93e4b407742d7fe /vala/valavaluetype.vala
parent94979a22270adeab75d2bfdb74902591d7385450 (diff)
downloadvala-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/valavaluetype.vala')
-rw-r--r--vala/valavaluetype.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valavaluetype.vala b/vala/valavaluetype.vala
index 8f5e70a36..f45b77fb9 100644
--- a/vala/valavaluetype.vala
+++ b/vala/valavaluetype.vala
@@ -53,7 +53,7 @@ public class Vala.ValueType : DataType {
return result;
}
- public override string get_cname (bool var_type, bool const_type) {
+ public override string? get_cname (bool var_type, bool const_type) {
string ptr = "";
if (is_ref || is_out) {
ptr += "*";