r22832 - gnucash/trunk/src/libqof/qof - Compile md5.c with "-fno-strict-aliasing".

Geert Janssens janssens-geert at telenet.be
Sun Mar 24 09:50:53 EDT 2013


On Saturday 23 March 2013 20:03:55 Mike Alexander wrote:
> Author: mta
> Date: 2013-03-23 20:03:54 -0400 (Sat, 23 Mar 2013)
> New Revision: 22832
> Trac: http://svn.gnucash.org/trac/changeset/22832
> 
> Modified:
>    gnucash/trunk/src/libqof/qof/Makefile.am
> Log:
> Compile md5.c with "-fno-strict-aliasing".
> The function md5_finish_ctx dereferences type-punned pointers which
> breaks strict aliasing rules.
> 
I haven't looked at the code so this may be totally wrong: I wonder if it 
would be possible to remove the warning by fixing the code instead of ignoring 
it ?

Geert


More information about the gnucash-devel mailing list