Hi Pekka,

> >> Do not add warning flag if corresponding or opposite option is already
> >> in CFLAGS.
> >
> > what is this fixing actually? The maintainer mode should only be enabled
> > during development and not for packaging.
> 
> Among other things it is fixing -Wcast-align on ARM compiler (gcc
> 4.3.3 armv7) that I use to develop with N900. With -Wcast-align the
> compiler issues a spurious alignment warning on dhcp_get_unaligned()
> and dhcp_put_unaligned(). That is because there is a (uint32_t *) cast
> in the middle (from char * to uint32_t to packed struct).

you might have mentioned that before, but seems I forgot. Can you point
we to that code again. Maybe it is time to see what is really going on
here. Seems to be something really weird with the casting and the
unaligned access. Maybe we can fix this without having the compiler to
tell to disable some warnings.

Regards

Marcel


_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to