Index: src/backend/file/test/test-string-converters.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/backend/file/test/test-string-converters.c,v
retrieving revision 1.4
diff -u -r1.4 test-string-converters.c
--- src/backend/file/test/test-string-converters.c	10 Jun 2003 18:38:37 -0000	1.4
+++ src/backend/file/test/test-string-converters.c	30 Dec 2004 20:59:45 -0000
@@ -23,7 +23,7 @@
     {
         bin_data *test_data1;
         void *test_data2;
-        gint64 test_data2_len;
+        guint64 test_data2_len;
         gchar *converted;
         
         test_data1 = get_random_binary_data();
Index: src/engine/gnc-numeric.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/engine/gnc-numeric.c,v
retrieving revision 1.60
diff -u -r1.60 gnc-numeric.c
--- src/engine/gnc-numeric.c	1 Nov 2004 01:37:09 -0000	1.60
+++ src/engine/gnc-numeric.c	30 Dec 2004 20:59:53 -0000
@@ -725,6 +725,9 @@
   double      sigfigs;
   qofint128 nume, newm;
 
+  temp.num   = 0;
+  temp.denom = 0;
+
   if(gnc_numeric_check(in)) {
     return gnc_numeric_error(GNC_ERROR_ARG);
   }
Index: src/engine/guid.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/engine/guid.c,v
retrieving revision 1.33
diff -u -r1.33 guid.c
--- src/engine/guid.c	3 May 2004 03:33:15 -0000	1.33
+++ src/engine/guid.c	30 Dec 2004 20:59:53 -0000
@@ -103,7 +103,7 @@
 }
 
 
-const GUID *
+GUID *
 guid_null(void)
 {
   static int null_inited = (0 == 1);
@@ -505,7 +505,7 @@
   counter--;
 }
 
-const GUID
+GUID
 guid_new_return(void)
 {
   GUID guid;
Index: src/engine/guid.h
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/engine/guid.h,v
retrieving revision 1.22
diff -u -r1.22 guid.h
--- src/engine/guid.h	6 May 2004 14:42:00 -0000	1.22
+++ src/engine/guid.h	30 Dec 2004 20:59:53 -0000
@@ -131,10 +131,10 @@
  *  The memory pointed to is owned by this routine and the guid must
  *  be copied out.
  */
-const GUID guid_new_return(void);
+GUID guid_new_return(void);
 
 /** Returns a GUID which is guaranteed to never reference any entity. */
-const GUID * guid_null (void);
+GUID * guid_null (void);
 
 /** Efficiently allocate & free memory for GUIDs */
 GUID * guid_malloc (void);
Index: src/engine/kvp_frame.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/engine/kvp_frame.c,v
retrieving revision 1.41
diff -u -r1.41 kvp_frame.c
--- src/engine/kvp_frame.c	9 Jul 2004 03:11:32 -0000	1.41
+++ src/engine/kvp_frame.c	30 Dec 2004 20:59:56 -0000
@@ -496,7 +496,7 @@
                             KvpValue * new_value) 
 {
   KvpValue * old_value;
-  char *last_key;
+  char *last_key = NULL;
 
   if (new_value)
   {
Index: src/engine/test/test-book-merge.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/engine/test/test-book-merge.c,v
retrieving revision 1.2
diff -u -r1.2 test-book-merge.c
--- src/engine/test/test-book-merge.c	5 Dec 2004 15:35:52 -0000	1.2
+++ src/engine/test/test-book-merge.c	30 Dec 2004 20:59:56 -0000
@@ -170,6 +170,10 @@
 obj_getDate(myobj *g)
 {
 	Timespec ts;
+
+	ts.tv_nsec = 0;
+	ts.tv_sec = 0;
+
 	if(!g) return ts;
 	ts = g->date;
 	return ts;
Index: src/gnome/gnc-split-reg.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome/gnc-split-reg.c,v
retrieving revision 1.38
diff -u -r1.38 gnc-split-reg.c
--- src/gnome/gnc-split-reg.c	24 Oct 2003 06:49:44 -0000	1.38
+++ src/gnome/gnc-split-reg.c	30 Dec 2004 21:00:00 -0000
@@ -254,7 +254,7 @@
   LAST_SIGNAL
 };
 
-static gint gnc_split_reg_signals[LAST_SIGNAL] = { 0 };
+static guint gnc_split_reg_signals[LAST_SIGNAL] = { 0 };
 
 static void
 gnc_split_reg_class_init( GNCSplitRegClass *class )
Index: src/gnome/mainwindow-account-tree.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome/mainwindow-account-tree.c,v
retrieving revision 1.6
diff -u -r1.6 mainwindow-account-tree.c
--- src/gnome/mainwindow-account-tree.c	9 Jun 2002 21:43:38 -0000	1.6
+++ src/gnome/mainwindow-account-tree.c	30 Dec 2004 21:00:00 -0000
@@ -38,7 +38,7 @@
       LAST_SIGNAL
     };
 
-static gint mainwinaccounttree_signals[LAST_SIGNAL] = { 0 };
+static guint mainwinaccounttree_signals[LAST_SIGNAL] = { 0 };
 
 static void
 unselect_account_callback(GNCAccountTree *tree, Account *account, gpointer user_data)
Index: src/gnome-utils/gnc-account-sel.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/gnc-account-sel.c,v
retrieving revision 1.9
diff -u -r1.9 gnc-account-sel.c
--- src/gnome-utils/gnc-account-sel.c	24 Oct 2003 06:49:50 -0000	1.9
+++ src/gnome-utils/gnc-account-sel.c	30 Dec 2004 21:00:01 -0000
@@ -42,7 +42,7 @@
         LAST_SIGNAL
 };
 
-static gint account_sel_signals [LAST_SIGNAL] = { 0 };
+static guint account_sel_signals [LAST_SIGNAL] = { 0 };
 
 static void gnc_account_sel_init         (GNCAccountSel      *gas);
 static void gnc_account_sel_class_init   (GNCAccountSelClass *class);
Index: src/gnome-utils/gnc-amount-edit.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/gnc-amount-edit.c,v
retrieving revision 1.3
diff -u -r1.3 gnc-amount-edit.c
--- src/gnome-utils/gnc-amount-edit.c	2 Jan 2003 07:10:45 -0000	1.3
+++ src/gnome-utils/gnc-amount-edit.c	30 Dec 2004 21:00:01 -0000
@@ -49,7 +49,7 @@
 };
 
 
-static gint amount_edit_signals [LAST_SIGNAL] = { 0 };
+static guint amount_edit_signals [LAST_SIGNAL] = { 0 };
 
 
 static void gnc_amount_edit_init         (GNCAmountEdit      *gae);
Index: src/gnome-utils/gnc-date-delta.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/gnc-date-delta.c,v
retrieving revision 1.2
diff -u -r1.2 gnc-date-delta.c
--- src/gnome-utils/gnc-date-delta.c	10 Jun 2003 19:03:58 -0000	1.2
+++ src/gnome-utils/gnc-date-delta.c	30 Dec 2004 21:00:01 -0000
@@ -53,7 +53,7 @@
   LAST_SIGNAL
 };
 
-static gint date_delta_signals [LAST_SIGNAL] = { 0 };
+static guint date_delta_signals [LAST_SIGNAL] = { 0 };
 
 
 static void gnc_date_delta_init       (GNCDateDelta      *gdd);
Index: src/gnome-utils/gnc-date-edit.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/gnc-date-edit.c,v
retrieving revision 1.11
diff -u -r1.11 gnc-date-edit.c
--- src/gnome-utils/gnc-date-edit.c	28 Jul 2003 18:44:21 -0000	1.11
+++ src/gnome-utils/gnc-date-edit.c	30 Dec 2004 21:00:03 -0000
@@ -53,7 +53,7 @@
 	LAST_SIGNAL
 };
 
-static gint date_edit_signals [LAST_SIGNAL] = { 0 };
+static guint date_edit_signals [LAST_SIGNAL] = { 0 };
 
 
 static void gnc_date_edit_init         (GNCDateEdit      *gde);
@@ -140,7 +140,7 @@
 day_selected (GtkCalendar *calendar, GNCDateEdit *gde)
 {
 	char buffer [40];
-	gint year, month, day;
+	guint year, month, day;
 
 	gtk_calendar_get_date (calendar, &year, &month, &day);
 
Index: src/gnome-utils/gnc-date-format.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/gnc-date-format.c,v
retrieving revision 1.3
diff -u -r1.3 gnc-date-format.c
--- src/gnome-utils/gnc-date-format.c	9 Jun 2003 03:38:26 -0000	1.3
+++ src/gnome-utils/gnc-date-format.c	30 Dec 2004 21:00:03 -0000
@@ -67,7 +67,7 @@
   GtkWidget*	label_box;
 };
 
-static gint date_format_signals [LAST_SIGNAL] = { 0 };
+static guint date_format_signals [LAST_SIGNAL] = { 0 };
 
 
 static void gnc_date_format_init         (GNCDateFormat      *gdf);
Index: src/gnome-utils/gnc-dense-cal.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/gnc-dense-cal.c,v
retrieving revision 1.13
diff -u -r1.13 gnc-dense-cal.c
--- src/gnome-utils/gnc-dense-cal.c	11 Mar 2004 01:17:14 -0000	1.13
+++ src/gnome-utils/gnc-dense-cal.c	30 Dec 2004 21:00:05 -0000
@@ -94,7 +94,7 @@
   LAST_SIGNAL
 };
 
-static gint gnc_dense_cal_signals[LAST_SIGNAL] = { 0 };
+static guint gnc_dense_cal_signals[LAST_SIGNAL] = { 0 };
 
 static short module = MOD_SX;
 
@@ -119,29 +119,29 @@
 static gint gnc_dense_cal_button_press( GtkWidget *widget,
                                         GdkEventButton *evt );
 
-static const inline int day_width_at( GncDenseCal *dcal, guint xScale );
-static const inline int day_width( GncDenseCal *dcal );
-static const inline int day_height_at( GncDenseCal *dcal, guint yScale );
-static const inline int day_height( GncDenseCal *dcal );
-static const inline int week_width_at( GncDenseCal *dcal, guint xScale );
-static const inline int week_width( GncDenseCal *dcal );
-static const inline int week_height_at( GncDenseCal *dcal, guint yScale );
-static const inline int week_height( GncDenseCal *dcal );
-static const inline int col_width_at( GncDenseCal *dcal, guint xScale );
-static const inline int col_width( GncDenseCal *dcal );
+static inline int day_width_at( GncDenseCal *dcal, guint xScale );
+static inline int day_width( GncDenseCal *dcal );
+static inline int day_height_at( GncDenseCal *dcal, guint yScale );
+static inline int day_height( GncDenseCal *dcal );
+static inline int week_width_at( GncDenseCal *dcal, guint xScale );
+static inline int week_width( GncDenseCal *dcal );
+static inline int week_height_at( GncDenseCal *dcal, guint yScale );
+static inline int week_height( GncDenseCal *dcal );
+static inline int col_width_at( GncDenseCal *dcal, guint xScale );
+static inline int col_width( GncDenseCal *dcal );
 
-static const inline int col_height( GncDenseCal *dcal );
-static const inline int num_cols( GncDenseCal *dcal );
+static inline int col_height( GncDenseCal *dcal );
+static inline int num_cols( GncDenseCal *dcal );
 /**
  * Returns the total number of weeks to display in the calendar [irrespective
  * of columns/weeks-per-col].
  **/
-static const inline int num_weeks( GncDenseCal *dcal );
+static inline int num_weeks( GncDenseCal *dcal );
 /**
  * Returns the number of weeks per column.  Note that this is the number of
  * weeks needed to display the longest column.
  **/
-static const int num_weeks_per_col( GncDenseCal *dcal );
+static int num_weeks_per_col( GncDenseCal *dcal );
 
 /** hotspot calculation **/
 static gint wheres_this( GncDenseCal *dcal, int x, int y );
@@ -1087,55 +1087,55 @@
         return TRUE;
 }
 
-static const inline int
+static inline int
 day_width_at( GncDenseCal *dcal, guint xScale )
 {
         return xScale + MINOR_BORDER_SIZE;
 }
 
-static const inline int
+static inline int
 day_width( GncDenseCal *dcal )
 {
         return day_width_at( dcal, dcal->x_scale );
 }
 
-static const inline int
+static inline int
 day_height_at( GncDenseCal *dcal, guint yScale )
 {
         return yScale + MINOR_BORDER_SIZE;
 }
 
-static const inline int
+static inline int
 day_height( GncDenseCal *dcal )
 {
         return day_height_at( dcal, dcal->y_scale );
 }
 
-static const inline int
+static inline int
 week_width_at( GncDenseCal *dcal, guint xScale )
 {
         return day_width_at(dcal, xScale) * 7;
 }
 
-static const inline int
+static inline int
 week_width( GncDenseCal *dcal )
 {
         return week_width_at( dcal, dcal->x_scale );
 }
 
-static const inline int
+static inline int
 week_height_at( GncDenseCal *dcal, guint yScale )
 {
         return day_height_at(dcal, yScale);
 }
 
-static const inline int
+static inline int
 week_height( GncDenseCal *dcal )
 {
         return week_height_at(dcal, dcal->y_scale);
 }
 
-static const inline int
+static inline int
 col_width_at( GncDenseCal *dcal, guint xScale )
 {
         return (week_width_at(dcal, xScale)
@@ -1143,33 +1143,33 @@
                 + COL_BORDER_SIZE);
 }
 
-static const inline int
+static inline int
 col_width( GncDenseCal *dcal )
 {
         return col_width_at( dcal, dcal->x_scale );
 }
 
-static const inline int
+static inline int
 col_height( GncDenseCal *dcal )
 {
         return week_height(dcal)
                 * num_weeks_per_col(dcal);
 }
 
-static const inline int
+static inline int
 num_cols( GncDenseCal *dcal )
 {
         return ceil( (float)dcal->numMonths / (float)dcal->monthsPerCol );
 }
 
-static const inline int
+static inline int
 num_weeks( GncDenseCal *dcal )
 {
         /* FIXME: calculate, remove 'recompute_extents' */
         return dcal->num_weeks;
 }
 
-static const
+static
 int num_weeks_per_col( GncDenseCal *dcal )
 {
         int num_weeks_toRet, numCols, i;
Index: src/gnome-utils/gnc-frequency.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/gnc-frequency.c,v
retrieving revision 1.20
diff -u -r1.20 gnc-frequency.c
--- src/gnome-utils/gnc-frequency.c	26 Jul 2003 18:35:33 -0000	1.20
+++ src/gnome-utils/gnc-frequency.c	30 Dec 2004 21:00:07 -0000
@@ -44,7 +44,7 @@
   LAST_SIGNAL
 } GNCF_Signals;
 
-static gint gnc_frequency_signals[LAST_SIGNAL] = { 0 };
+static guint gnc_frequency_signals[LAST_SIGNAL] = { 0 };
 
 /** Private Prototypes ********************/
 
