Sorry, it went to the rlib-users list.
Zoltan Boszormenyi =EDrta:
> Hi,
>=20
> here's the next part. Changelog:
>=20
> ***********************************************************
> Silence warnings in datasource.c. The original code gave these
> kinds of warnings on GCC4:
> warning: ISO C forbids conversion of function pointer to object pointer=
=20
> type
> warning: ISO C forbids initialization between function pointer and 'voi=
d *'
> warning: ISO C forbids assignment between function pointer and 'void *'
> The above warnings sound serious but on the other hand, explicitly
> casting the address of a function pointer to a (gpointer *) gave this
> warning on older GCCs:
> warning: dereferencing type-punned pointer will break strict-aliasing r=
ules
> Aliasing function pointers to gpointer using unions solves this, using
> union {
> gpointer ptr;
> void (*function)(void);
> }
> allows the assignment to the gpointer and calling function() without
> warnings.
> ***********************************************************
>=20
> Best regards,
> Zolt=E1n B=F6sz=F6rm=E9nyi
|