test-csum: Avoid "cast increases required alignment of target type" warning.
authorBen Pfaff <blp@nicira.com>
Tue, 24 May 2011 18:04:22 +0000 (11:04 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 26 May 2011 16:03:05 +0000 (09:03 -0700)
commite7b3e606b2f6054bc20518d64100ae501b3e6ef3
tree0fd55037dced4e321d312c7f1fd52b7e940d4035
parent98dbe2dded157a753a56df30faba3f5f51dc35f7
test-csum: Avoid "cast increases required alignment of target type" warning.

Casting a character pointer to uint16_t * or uint32_t * provokes this
warning on sparc.  There is no actual problem, because all of the accesses
to data occurs through calls to the get_unaligned_*() functions, so this
commit suppresses the warning by using "void *" as an intermediate type.
tests/test-csum.c