gnucash maint: To fix build error: ISO C90 forbids mixed declarations and code

J. Alex Aycinena alex.aycinena at code.gnucash.org
Wed Mar 4 18:31:00 EST 2015


Updated	 via  https://github.com/Gnucash/gnucash/commit/b7b8f6f5 (commit)
	from  https://github.com/Gnucash/gnucash/commit/39849b8a (commit)



commit b7b8f6f5a727c37bc77a6f73edd3f3e9f2488a09
Author: gnucash-dev <gnucash-dev at HPdv5Fedora.home>
Date:   Wed Mar 4 15:25:15 2015 -0800

    To fix build error: ISO C90 forbids mixed declarations and code

diff --git a/src/gnome-utils/gnc-query-view.c b/src/gnome-utils/gnc-query-view.c
index 05d1267..06e3d3f 100644
--- a/src/gnome-utils/gnc-query-view.c
+++ b/src/gnome-utils/gnc-query-view.c
@@ -796,12 +796,14 @@ gnc_query_view_fill (GNCQueryView *qview)
         {
             gboolean result;
             GNCSearchParamSimple *param = node->data;
-            g_assert (GNC_IS_SEARCH_PARAM_SIMPLE (param));
-            GSList *converters = gnc_search_param_get_converters (param);
+            GSList *converters = NULL;
             const char *type = gnc_search_param_get_param_type ((GNCSearchParam *) param);
             gpointer res = item->data;
             gchar *qofstring;
 
+            g_assert (GNC_IS_SEARCH_PARAM_SIMPLE (param));
+            converters = gnc_search_param_get_converters (param);
+
             /* Test for boolean type */
             if (g_strcmp0 (type, QOF_TYPE_BOOLEAN) == 0)
             {



Summary of changes:
 src/gnome-utils/gnc-query-view.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list