X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=lib%2Futil.h;h=911ad3218a6855b75dd5a0a9df8f889d6f98cf88;hb=cc36576070df622d0fc7a6e26ce01027e12b5b59;hp=2159594cb79a415d2fa427db54acba0d2f729548;hpb=bbb8dee92d639331e8bd81823638267dcc895396;p=sliver-openvswitch.git diff --git a/lib/util.h b/lib/util.h index 2159594cb..911ad3218 100644 --- a/lib/util.h +++ b/lib/util.h @@ -189,9 +189,9 @@ is_pow2(uintmax_t x) * that that OBJECT points to, assigns the address of the outer object to * OBJECT, which must be an lvalue. * - * Evaluates to 1. */ + * Evaluates to (void) 0 as the result is not to be used. */ #define ASSIGN_CONTAINER(OBJECT, POINTER, MEMBER) \ - ((OBJECT) = OBJECT_CONTAINING(POINTER, OBJECT, MEMBER), 1) + ((OBJECT) = OBJECT_CONTAINING(POINTER, OBJECT, MEMBER), (void) 0) #ifdef __cplusplus extern "C" {