diff options
author | Ben Pfaff <blp@nicira.com> | 2011-05-24 10:55:26 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-05-26 09:01:29 -0700 |
commit | 08c4a39ef8417de8f48874296f07ad58de46eefc (patch) | |
tree | c2a6942c78026ccd00989fb5202c98fe0a919e3e /lib/netlink.h | |
parent | 48e1b7fb9b2e0f6c7cf3f54eda9679ec0130e737 (diff) | |
download | openvswitch-08c4a39ef8417de8f48874296f07ad58de46eefc.tar.gz |
netlink: Avoid "cast increases required alignment of target type" on RISC.
This warning doesn't indicate a genuine problem, since 'nla' must be
aligned properly and NLA_ALIGN ensures that the offset is aligned properly
too. Casting via void * suppresses the warning.
Diffstat (limited to 'lib/netlink.h')
-rw-r--r-- | lib/netlink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netlink.h b/lib/netlink.h index b1bf5858b..0bd2c41e6 100644 --- a/lib/netlink.h +++ b/lib/netlink.h @@ -98,7 +98,7 @@ enum nl_attr_type static inline struct nlattr * nl_attr_next(const struct nlattr *nla) { - return (struct nlattr *) ((uint8_t *) nla + NLA_ALIGN(nla->nla_len)); + return (void *) ((uint8_t *) nla + NLA_ALIGN(nla->nla_len)); } static inline bool |