Build Error on Trunk

Derek Atkins warlord at MIT.EDU
Sat Sep 6 18:37:44 EDT 2008


Quoting Tom Browder <tom.browder at>:

> I just updated fron the trunk (r17498), configured using
> '--enable-compile-warnings', and, using gcc-4.3.1, got the following
> errors (it occurs four times in the same file, all at calls of
> G_LOCK(threads) and G_UNLOCK(threads).
> io-gncxml-v2.c:1351: error: dereferencing type-punned pointer will
> break strict-aliasing rules

Hmm, I dont see this with gcc 4.1.2, so it must be a new-in-4.3
warning.  Usually this error is about casting a pointer of one
type to another in a potentially unsafe way.  In this case it could
mean a bug in G_LOCK/G_UNLOCK or it could be a bug in the way
we use it.

> I found a thread on the devel list for a similar problem but nothing
> about this. (see
> I get a complete build with 'configure --disable-error-on-warning'.
> Is it safe to use?

Define "safe"..  It *is* trunk after all.  In trunk there's no guarantee
that your data wont get destroyed.  We try hard to make sure that
doesn't happen, of course, but trunk is a development branch.

Speaking of which, this should have been asked on -devel, not -user

1) It IS a development question, and
2) it is about testing the trunk.

> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.


       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL:    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the gnucash-user mailing list