Thunar fails to build with debug

Mike Massonnet mike.massonnet at gmail.com
Sun Jan 18 20:37:49 CET 2009


Le Sun, 18 Jan 2009 20:13:04 +0100,
David Gustafsson <david.s.gustafsson at gmail.com> a écrit :
> Hi,
> 
> This also happens in libexo when compiling with debug. The problem is
> a known bug in glib[1].
> 
> exo-mount-point.c: In function 'IA__exo_mount_point_list_matched':
> exo-mount-point.c:561: error: dereferencing type-punned pointer will
> break strict-aliasing rules
> exo-mount-point.c:575: error: dereferencing type-punned pointer will
> break strict-aliasing rules
> 
> [1] http://bugzilla.gnome.org/show_bug.cgi?id=316221

Thanks for pointing there.  I believe the best work-around for the
moment is to bypass the warning with no-error=satic-aliasing as in
comment #30.

This works for me:
export CFLAGS=-Wno-error=static-aliasing
./autogen.sh

Thanks!
Mike



More information about the Xfce4-dev mailing list