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
Mon Jul 28 01:06:24 EDT 2008


Hi Phil,

On So, 2008-07-27 at 20:27 -0400, Phil Longstaff wrote:
> Andreas Köhler wrote:
> > 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.
> 
> According to 'man gcc', -Wuninitialized is enabled by -Wall.  However,
> -Wuninitialized also requires -O.  If -Wuninitialized is used without
> -O, gcc gives a warning message.  If -Winitialized is *not* specified,
> but -Wall is, and -O is not present, there is no warning message and no
> check for uninitialized variables.
> 
> BTW, This is fixed in both the gobject-engine-dev2 tree (r17431) and
> gda-dev2 (17432).

Ah, that was the bit of information is was missing.  So I assume you
built with -O0, because -O2 should be the default otherwise, right?

Thanks for clearing this up.

Ciao,
-- andi5

PS: Please excuse my harsh tone, I did not mean to sound that way at
all, actually.

-------------- 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/20080728/aa6a4010/attachment.bin 


More information about the gnucash-devel mailing list