From GnuCash
Jump to: navigation, search

Compiling GnuCash trunk source, using '--enable-compile-warnings', under gcc-4.3.1 results in error messages like the following:

 io-gncxml-v2.c:1351: error: dereferencing type-punned pointer will
 break strict-aliasing rules

A discussion of the source of the error starts on the users mailing list at <>; the thread later moves to the developers mailing list starting at <>.

To "cure" the problem, use the following configure line:

./configure CFLAGS='-fno-strict-aliasing' --enable-compile-warnings

Tom Browder