Hi Denis,

On 21/06/2019 19.54, Denis Kenzior wrote:
What compiler are you using?  gcc really needs to make up its mind whether it warns about enums or doesn't.  The behavior between versions is nuts.

% arm-oe-linux-gnueabi-gcc --version
arm-oe-linux-gnueabi-gcc (GCC) 8.2.0

So I need this fix when building for my embedded platform using a compiler from the Yocto SDK. Thanks for applying.

My up-to-date host compiler has no complaints regarding enums :)

But with gcc-9.1 I get a few of these now:

../git/gisi/modem.c: In function ‘modem_subs_update’:
../git/gisi/modem.c:383:3: error: converting a packed ‘struct sockaddr_pn’ pointer (alignment 1) to a ‘const struct sockaddr’ pointer (alignment 2) may result in an unaligned pointer value [-Werror=address-of-packed-member]
  383 |   sizeof(commgr));
      |   ^~~~~~
In file included from ../git/gisi/message.h:32,
                 from ../git/gisi/modem.c:36:
../git/gisi/phonet.h:49:8: note: defined here
   49 | struct sockaddr_pn {
      |        ^~~~~~~~~~~


It's not a problem though, since I don't enable gisi in my build - now you know :)

// Martin
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to