On Mon, Jul 22, 2013 at 09:19:58AM -0700, Alex Wang wrote: > This commit fixes the warning issued by 'clang' when pointer is casted > to one with greater alignment. > > Signed-off-by: Alex Wang <al...@nicira.com>
Could you use the existing ofpbuf_at() instead of a new ofpbuf_forward_ref()? If there's no appropriate 'size' in a given call then you can use 0. It shouldn't be necessary to cast the return value of ofpbuf_forward_ref() or ofpbuf_at(), generally, because they return void *. It isn't necessary to parenthesize the arguments to ALIGNED_CAST, since the macro properly parenthesizes them internally. Thanks, Ben. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev