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.
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