add return statements to silence C compiler
authorJuerg Billeter <j@bitron.ch>
Wed, 9 Jan 2008 15:36:48 +0000 (15:36 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Wed, 9 Jan 2008 15:36:48 +0000 (15:36 +0000)
2008-01-09  Juerg Billeter  <j@bitron.ch>

* gee/hashmap.vala: add return statements to silence C compiler

svn path=/trunk/; revision=812

ChangeLog
gee/hashmap.vala

index f037bec..6b22d30 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-01-09  Jürg Billeter  <j@bitron.ch>
 
+       * gee/hashmap.vala: add return statements to silence C compiler
+
+2008-01-09  Jürg Billeter  <j@bitron.ch>
+
        * vapigen/valagidlparser.vala: support nullable attribute in metadata
 
        * vapi/packages/gtk+-2.0/gtk+-2.0.metadata: set nullable attribute for
index c6b3377..df20d63 100644 (file)
@@ -2,7 +2,7 @@
  *
  * Copyright (C) 1995-1997  Peter Mattis, Spencer Kimball and Josh MacDonald
  * Copyright (C) 1997-2000  GLib Team and others
- * Copyright (C) 2007  Jürg Billeter
+ * Copyright (C) 2007-2008  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -271,6 +271,7 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
 
                public bool add (V value) {
                        assert_not_reached ();
+                       return false;
                }
 
                public void clear () {
@@ -279,6 +280,7 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
 
                public bool remove (V value) {
                        assert_not_reached ();
+                       return false;
                }
 
                public bool contains (V value) {