Problem building GnuCash from source

Andreas Köhler andi5.py at gmx.net
Mon Apr 17 12:09:53 EDT 2006


Hi,

On Monday, 17 Apr 2006, 15:17 CEST, Pawan Chitrakar wrote:
> i got following error after update the source .
> 
> did i miss out some libraries.
> 
>  -MP -MF .deps/druid-gnc-xml-import.Tpo -c druid-gnc-xml-import.c  -fPIC
> -DPIC -o .libs/druid-gnc-xml-import.o
> druid-gnc-xml-import.c: In function `gxi_string_combo_changed_cb':
> druid-gnc-xml-import.c:1152: warning: `curr_conv' might be used
> uninitialized in this function
> make[5]: *** [druid-gnc-xml-import.lo] Error 1
> 
> looking forward for some advice
> 
> regards,
> pawan

this should be fixed in r13798. If you are using GnuCash 1.9.5, you
can also apply attached patch.

Thanks for reporting.

-- andi5
-------------- next part --------------
Index: src/gnome-utils/druid-gnc-xml-import.c
===================================================================
--- src/gnome-utils/druid-gnc-xml-import.c	(revision 13797)
+++ src/gnome-utils/druid-gnc-xml-import.c	(working copy)
@@ -838,8 +838,8 @@
 static void
 gxi_update_summary_label (GncXmlImportData *data)
 {
-  gchar *string;
-  gboolean show;
+  gchar *string=NULL;
+  gboolean show=FALSE;
 
   if (data->n_unassigned) {
     if (data->n_impossible) {
@@ -1149,7 +1149,7 @@
   GList *found, *default_conv;
   gboolean is_active;
   ambiguous_type *amb;
-  conv_type *prev_conv, *curr_conv;
+  conv_type *prev_conv, *curr_conv=NULL;
   gpointer ptr;
   GQuark prev_enc, curr_enc;
 


More information about the gnucash-devel mailing list