[gegl] Fix mixed declaration warnings
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Fix mixed declaration warnings
- Date: Tue, 4 Mar 2014 01:04:22 +0000 (UTC)
commit da367771070803969f9b505ee1b99ad4120aef85
Author: Daniel Sabo <DanielSabo gmail com>
Date: Mon Mar 3 02:05:07 2014 -0800
Fix mixed declaration warnings
gegl/operation/gegl-operations.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gegl/operation/gegl-operations.c b/gegl/operation/gegl-operations.c
index 329e6a4..3bec134 100644
--- a/gegl/operation/gegl-operations.c
+++ b/gegl/operation/gegl-operations.c
@@ -141,11 +141,11 @@ gegl_operations_check_license (const gchar *operation_license)
static void
gegl_operations_update_visible (void)
{
- g_mutex_lock (&operations_cache_mutex);
-
GHashTableIter iter;
- const gchar *iter_key;
- GType iter_value;
+ const gchar *iter_key;
+ GType iter_value;
+
+ g_mutex_lock (&operations_cache_mutex);
g_hash_table_remove_all (visible_operation_names);
g_slist_free (operations_list);
@@ -156,13 +156,14 @@ gegl_operations_update_visible (void)
while (g_hash_table_iter_next (&iter, (gpointer)&iter_key, (gpointer)&iter_value))
{
- GObjectClass *object_class;
+ GObjectClass *object_class;
GeglOperationClass *operation_class;
+ const gchar *operation_license;
object_class = g_type_class_ref (iter_value);
operation_class = GEGL_OPERATION_CLASS (object_class);
- const gchar *operation_license = g_hash_table_lookup (operation_class->keys, "license");
+ operation_license = g_hash_table_lookup (operation_class->keys, "license");
if (!operation_license || gegl_operations_check_license (operation_license))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]