From b7b8f6f5a727c37bc77a6f73edd3f3e9f2488a09 Mon Sep 17 00:00:00 2001 From: gnucash-dev Date: Wed, 4 Mar 2015 15:25:15 -0800 Subject: [PATCH] To fix build error: ISO C90 forbids mixed declarations and code --- src/gnome-utils/gnc-query-view.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gnome-utils/gnc-query-view.c b/src/gnome-utils/gnc-query-view.c index 05d1267032..06e3d3f74f 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) {