r17352 - gnucash/branches/gobject-engine-dev2/src/engine - Convert GncBudget to be a GObject with parameters and private section.
Andreas Köhler
andi5.py at gmx.net
Sun Jul 27 17:46:50 EDT 2008
Hi Phil,
On So, 2008-07-20 at 15:12 -0400, Phil Longstaff wrote:
> Author: plongstaff
> Date: 2008-07-20 15:12:44 -0400 (Sun, 20 Jul 2008)
> New Revision: 17352
> Trac: http://svn.gnucash.org/trac/changeset/17352
> Log:
> Convert GncBudget to be a GObject with parameters and private section.
---8<---
> Modified: gnucash/branches/gobject-engine-dev2/src/engine/gnc-budget.c
> ===================================================================
> static void
> gnc_budget_free(QofInstance *inst)
> {
> - GncBudget *budget = GNC_BUDGET(inst);
> + GncBudget *budget;
> + BudgetPrivate* priv;
> +
> if (budget == NULL)
> return;
> -
> g_return_if_fail(GNC_IS_BUDGET(budget));
>
> + budget = GNC_BUDGET(inst);
> + priv = GET_PRIVATE(budget);
> +
---8<---
I cannot compile this file as gcc complains about "error: 'budget' is
used uninitialized in this function". Actually, I think this is a
-Wuninitialized warning (from -Wall) treated as error given -Werror.
That flag is added by configure when the source tree is found in an
svn/svk/git checkout, so it should be active for you as well.
Ciao,
-- andi5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20080727/8112220b/attachment.bin
More information about the gnucash-devel
mailing list