[ovs-dev] new Geneve warnings
Jesse Gross
jesse at nicira.com
Fri May 29 17:48:05 UTC 2015
On Fri, May 29, 2015 at 10:43 AM, Ben Pfaff <blp at nicira.com> wrote:
> I'm seeing the following new warnings from the Geneve patch checked in
> recently:
>
> ../lib/odp-util.c:2936:30: error: cast from 'uint8_t *' (aka 'unsigned char *')
> to 'struct geneve_opt *' increases required alignment from 1 to 2
> [-Werror,-Wcast-align]
> struct geneve_opt *opt = (struct geneve_opt *)key->d;
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../lib/odp-util.c:2937:35: error: cast from 'uint8_t *' (aka 'unsigned char *')
> to 'struct geneve_opt *' increases required alignment from 1 to 2
> [-Werror,-Wcast-align]
> struct geneve_opt *opt_mask = (struct geneve_opt *)(mask ? mask->d : NULL);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Yeah, Joe pointed that out as well. I just send out a patch.
More information about the dev
mailing list