ofono build error on ARM

Rémi Denis-Courmont remi at remlab.net
Mon Aug 3 00:48:54 PDT 2009


On Sat, 1 Aug 2009 18:56:54 +0300, "Rémi Denis-Courmont" <remi at remlab.net>
wrote:
> As far as I understand, those warnings come from casting receive buffers
> into structure with higher-order alignment requirement  - with some of
> your competitors' CPU architectures anyway ;) Arguably, those are caused
> by kernel/libc headers, not Ofono. I will check on Monday if we can fix
> them by promoting the receive buffers to larger integer types, but it
might
> make the code worse.

Nope. The problem is that netlink is internally casting pointers to char*
for arithmetic operation, and then back to struct whatever. This confuses
gcc, even though it should be a non-issue at run-time.

-- 
Rémi Denis-Courmont



More information about the ofono mailing list