[libgsf] Fix GSF_DYNAMIC_CLASS_FULL to make gcc-4.6 happy.



commit 5b1d55962dac93f1be126100927271ecb475eac2
Author: Jean Brefort <jean brefort normalesup org>
Date:   Mon May 2 09:54:30 2011 +0200

    Fix GSF_DYNAMIC_CLASS_FULL to make gcc-4.6 happy.

 ChangeLog            |    4 ++++
 gsf/gsf-impl-utils.h |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0075a23..141c4bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-05-02  Jean Brefort  <jean brefort normalesup org>
+
+	* gsf/gsf-impl-utils.h: fix GSF_DYNAMIC_CLASS_FULL to make gcc-4.6 happy.
+
 2011-04-05  Morten Welinder  <terra gnome org>
 
 	* Makefile.am: ${ACLOCAL_FLAGS}, not $(ACLOCAL_FLAGS) which seems
diff --git a/gsf/gsf-impl-utils.h b/gsf/gsf-impl-utils.h
index 058286c..9a62aa1 100644
--- a/gsf/gsf-impl-utils.h
+++ b/gsf/gsf-impl-utils.h
@@ -130,7 +130,7 @@ prefix ## _register_type (GTypeModule *module)				\
 									\
 	g_return_if_fail (prefix ## _type == 0); 			\
 									\
-	type = prefix ## _type = g_type_module_register_type (module,	\
+	prefix ## _type = type = g_type_module_register_type (module,	\
 		parent_type, #name, &type_info, (GTypeFlags) abstract);	\
 	interface_decl							\
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]