Get gnucash to compile with gcc4.1.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13108 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2006-02-05 03:17:28 +00:00
parent 52514db6fa
commit fab1d29944
3 changed files with 12 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
2006-02-04 David Hampton <david@dhcp-15.rainbolthampton.net>
* src/register/ledger-core/split-register.c:
* src/gnome-utils/gnc-tree-view-account.c: Get gnucash to compile
with gcc4.1.
2006-02-04 Derek Atkins <derek@ihtfp.com>
* lib/libqof/qof/gnc-numeric.c:

View File

@@ -1554,6 +1554,7 @@ gppat_filter_response_cb (GtkWidget *dialog,
AccountFilterDialog *fd)
{
GtkWidget *view;
gpointer gptemp;
g_return_if_fail(GTK_IS_DIALOG(dialog));
@@ -1567,8 +1568,10 @@ gppat_filter_response_cb (GtkWidget *dialog,
}
/* Clean up and delete dialog */
g_atomic_pointer_compare_and_exchange((gpointer *)&fd->dialog,
gptemp = (gpointer *)fd->dialog;
g_atomic_pointer_compare_and_exchange(&gptemp,
dialog, NULL);
fd->dialog = gptemp;
gtk_widget_destroy(dialog);
LEAVE("types 0x%x", fd->visible_types);
}

View File

@@ -1403,8 +1403,8 @@ gnc_split_register_save (SplitRegister *reg, gboolean do_commit)
return FALSE;
/* Validate the transfer account names */
(void *)gnc_split_register_get_account (reg, MXFRM_CELL);
(void *)gnc_split_register_get_account (reg, XFRM_CELL);
(void)gnc_split_register_get_account (reg, MXFRM_CELL);
(void)gnc_split_register_get_account (reg, XFRM_CELL);
/* Maybe deal with exchange-rate transfers */
if (gnc_split_register_handle_exchange (reg, FALSE))