[ovs-dev] [PATCH 1/4] Add OF actions for generic encap and decap

Zoltán Balogh zoltan.balogh at ericsson.com
Thu Jul 13 16:49:09 UTC 2017


Hello Ben,


> GCC says:
> 
>     ../lib/ofp-actions.c:4189:13: error: cast from 'char *' to 'struct ofpact_encap *' increases required alignment
> from 1 to 4 [-Werror,-Wcast-align]
>     ../lib/ofp-actions.c:4222:16: error: cast from 'const uint8_t *' (aka 'const unsigned char *') to 'const struct
> ofpact_ed_prop *' increases required alignment from 1 to 2 [-Werror,-Wcast-align]

I cannot see these errors. I've tested with GCC 4.8.4 on Ubuntu 14.04.5 LTS and with GCC 6.3.0 on Ubuntu 17.04. 
Which version of GCC and Linux distro did you use? Did you pass any special args to make or to the configure script?

Best regards,
Zoltan



More information about the dev mailing list