netlink.c:97: error: cast increases required alignment of target type
Aki Niemi
aki at protocolpolice.com
Wed Sep 16 07:00:07 PDT 2009
Hi,
2009/9/15 Timo Juhani Lindfors <timo.lindfors at iki.fi>:
>> CC gdbus/watch.o
>> CC gisi/netlink.o
>> cc1: warnings being treated as errors
>> gisi/netlink.c: In function 'g_pn_nl_process':
>> gisi/netlink.c:97: error: cast increases required alignment of target type
>> gisi/netlink.c:129: error: cast increases required alignment of target type
>> gisi/netlink.c:130: error: cast increases required alignment of target type
This was discussed some weeks ago, and that warning is bogus in this
case, but there wasn't a clean workaround for it.
> on armel (openmoko gta02) debian unstable system with gcc 4:4.3.3-9
> apparently since in mainstainer mode -Wcast-align complains about
First of all, you probably should configure --disable-isimodem, which
excludes gisi as well, since the openmoko surely doesn't have a Nokia
modem in it. ;)
Also, distributors really should build without maintainer mode, which
makes the problem go away. It does suck for us, though, when building
in scratchbox armel target.
Cheers,
Aki
More information about the ofono
mailing list