Removed unused variable warning soc.2013.gobjectification.plugins

Thu, 12 Sep 2013 21:55:35 +0530

author
Ankit Vani <a@nevitus.org>
date
Thu, 12 Sep 2013 21:55:35 +0530
branch
soc.2013.gobjectification.plugins
changeset 36703
ff84e2510bb7
parent 36702
5e52b2f940a3
child 36704
01edebf55111

Removed unused variable warning

libpurple/plugins.h file | annotate | diff | comparison | revisions
--- a/libpurple/plugins.h	Thu Sep 12 20:04:36 2013 +0530
+++ b/libpurple/plugins.h	Thu Sep 12 21:55:35 2013 +0530
@@ -309,9 +309,9 @@
 			(GInstanceInitFunc) type_name##_init, \
 			NULL \
 		}; \
-		type_name##_type_id = purple_plugin_register_type(plugin, TYPE_PARENT, \
-								 #TypeName, &type_info, (GTypeFlags) flags); \
-		type_id = type_name##_type_id; \
+		type_id = purple_plugin_register_type(plugin, TYPE_PARENT, #TypeName, \
+		                                      &type_info, (GTypeFlags) flags); \
+		type_name##_type_id = type_id; \
 		{ CODE ; } \
 	} \
 }
@@ -346,9 +346,9 @@
 			(GInstanceInitFunc) type_name##_init, \
 			NULL \
 		}; \
-		type_name##_type_id = g_type_register_static(TYPE_PARENT, #TypeName, \
-								 &type_info, (GTypeFlags) flags); \
-		type_id = type_name##_type_id; \
+		type_id = g_type_register_static(TYPE_PARENT, #TypeName, &type_info, \
+		                                 (GTypeFlags) flags); \
+		type_name##_type_id = type_id; \
 		{ CODE ; } \
 	} \
 	return type_name##_type_id; \

mercurial