Fix the build with -DG_DISABLE_ASSERT. (#525060, Arfrever Frehtes
authorMatthias Clasen <mclasen@redhat.com>
Mon, 31 Mar 2008 03:45:28 +0000 (03:45 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 31 Mar 2008 03:45:28 +0000 (03:45 +0000)
2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/ghash.c: Fix the build with -DG_DISABLE_ASSERT.
        (#525060, Arfrever Frehtes Taifersar Arahesis)

svn path=/trunk/; revision=6777

ChangeLog
glib/ghash.c

index 52a3d5022edac30299ce9886212c86f23976fb4e..ba28ad44ae1ec770cadafb297ba4d61b29dc4a7c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-30  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/ghash.c: Fix the build with -DG_DISABLE_ASSERT.
+       (#525060, Arfrever Frehtes Taifersar Arahesis)
+
 2008-03-30  Matthias Clasen  <mclasen@redhat.com>
        
        * glib/gthread.h: Replace occurrances of G_GNUC_PRETTY_FUNCTION
index 62df5b9539279c74aea915fba96b36a6e1dac9f4..af81f5accdbdcfd85e1bbfe574a04eac9c1b0983 100644 (file)
@@ -422,7 +422,9 @@ g_hash_table_iter_next (GHashTableIter *iter,
   RealIter *ri = (RealIter *) iter;
 
   g_return_val_if_fail (iter != NULL, FALSE);
+#ifndef G_DISABLE_ASSERT
   g_return_val_if_fail (ri->version == ri->hash_table->version, FALSE);
+#endif
 
   if (ri->pre_advanced)
     {
@@ -484,7 +486,9 @@ iter_remove_or_steal (RealIter *ri, gboolean notify)
   int position;
 
   g_return_if_fail (ri != NULL);
+#ifndef G_DISABLE_ASSERT
   g_return_if_fail (ri->version == ri->hash_table->version);
+#endif
   g_return_if_fail (ri->node != NULL);
 
   prev = ri->prev_node;