{
gint i;
#ifndef G_DISABLE_ASSERT
- gint version = hash_table->version;
+ gint version;
#endif
g_return_if_fail (hash_table != NULL);
g_return_if_fail (func != NULL);
+#ifndef G_DISABLE_ASSERT
+ version = hash_table->version;
+#endif
+
for (i = 0; i < hash_table->size; i++)
{
guint node_hash = hash_table->hashes[i];
{
gint i;
#ifndef G_DISABLE_ASSERT
- gint version = hash_table->version;
+ gint version;
#endif
gboolean match;
g_return_val_if_fail (hash_table != NULL, NULL);
g_return_val_if_fail (predicate != NULL, NULL);
+#ifndef G_DISABLE_ASSERT
+ version = hash_table->version;
+#endif
+
match = FALSE;
for (i = 0; i < hash_table->size; i++)