[ovs-git] [openvswitch/ovs] f17e8a: Avoid uninitialized variable warnings with OBJECT_...

GitHub noreply at github.com
Fri Sep 12 16:04:01 UTC 2014

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: f17e8ad6c6d61db95622872146a4f3706ae47166
  Author: Gurucharan Shetty <gshetty at nicira.com>
  Date:   2014-09-12 (Fri, 12 Sep 2014)

  Changed paths:
    M lib/classifier.c
    M lib/classifier.h
    M lib/cmap.h
    M lib/heap.h
    M lib/hindex.h
    M lib/hmap.h
    M lib/list.h
    M lib/util.h

  Log Message:
  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 at nicira.com>
Acked-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
Acked-by: Saurabh Shah <ssaurabh at vmware.com>
Acked-by: Ben Pfaff <blp at nicira.com>

More information about the git mailing list