clang: Fix segfault in unit tests.
authorAlex Wang <alexw@nicira.com>
Mon, 22 Jul 2013 16:19:56 +0000 (09:19 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 22 Jul 2013 18:20:43 +0000 (11:20 -0700)
commit55d2690646769467b6d26ad55516ff6eeb12869d
tree19b86a6ef64c96d9a1a98ff53863062b21c8d7e3
parent21a0e105f175926d1d10d324565915ccb96fd28b
clang: Fix segfault in unit tests.

It seems that 'clang' compiler applies strict protection on pointer
dereference. And it causes unexpected execution in macro functions
like "HMAP_FOR_EACH()" and unit test failures. This commit fixes
this issue and pass all unit tests.

Co-authored-by: Ethan Jackson <ethan@nicira.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/classifier.h
lib/hindex.h
lib/hmap.h
lib/sset.h