Avoid uninitialized variable warnings with OBJECT_OFFSETOF() in MSVC.
authorGurucharan Shetty <gshetty@nicira.com>
Tue, 9 Sep 2014 21:23:07 +0000 (14:23 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 12 Sep 2014 16:03:10 +0000 (09:03 -0700)
commitf17e8ad6c6d61db95622872146a4f3706ae47166
treea35789c2f4750d00239f6468ff1ef4c93adc4ea5
parent74467d5c885b8a500e0a04c455d6ee405d27bd54
Avoid uninitialized variable warnings with OBJECT_OFFSETOF() in MSVC.

Implementation of OBJECT_OFFSETOF() for non-GNUC compilers like MSVC
causes "uninitialized variable" warnings. Since OBJECT_OFFSETOF() is
indirectly used through all the *_FOR_EACH() (through ASSIGN_CONTAINER()
and  OBJECT_CONTAINING()) macros, the OVS build
on Windows gets littered with "uninitialized variable" warnings.
This patch attempts to workaround the problem.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Acked-by: Saurabh Shah <ssaurabh@vmware.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/classifier.c
lib/classifier.h
lib/cmap.h
lib/heap.h
lib/hindex.h
lib/hmap.h
lib/list.h
lib/util.h