> ((LONG)(LONG_PTR)&((decltype(OBJECT))0)->MEMBER) > I think it is the right way to implement it. But, this keyword "decltype" is > ignored by the compiler when above macro is used in the OVS source base. I > don't know the reason for it but it might be related to custom compilation > options we use (or others we don't use). > > I pushed my change. If it turns out that decltype works for C, I will revert my change. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev
- Re: [ovs-dev] [PATCH 3/3] Avoid un... Eitan Eliahu
- Re: [ovs-dev] [PATCH 3/3] Avoid uninitialized v... Gurucharan Shetty
- Re: [ovs-dev] [PATCH 3/3] Avoid uninitializ... Eitan Eliahu
- Re: [ovs-dev] [PATCH 3/3] Avoid uniniti... Gurucharan Shetty
- Re: [ovs-dev] [PATCH 3/3] Avoid un... Eitan Eliahu
- Re: [ovs-dev] [PATCH 3/3] Avoi... Ben Pfaff
- Re: [ovs-dev] [PATCH 3/3] Avoi... Eitan Eliahu
- Re: [ovs-dev] [PATCH 3/3] Avoi... Ben Pfaff
- Re: [ovs-dev] [PATCH 3/3] Avoi... Eitan Eliahu
- Re: [ovs-dev] [PATCH 3/3] Avoi... Ben Pfaff
- Re: [ovs-dev] [PATCH 3/3] Avoi... Gurucharan Shetty
- Re: [ovs-dev] [PATCH 3/3] Avoi... Gurucharan Shetty
- Re: [ovs-dev] [PATCH 3/3] Avoi... Eitan Eliahu
- Re: [ovs-dev] [PATCH 3/3] Avoi... Eitan Eliahu
- Re: [ovs-dev] [PATCH 3/3] Avoi... Gurucharan Shetty
- Re: [ovs-dev] [PATCH 3/3] Avoi... Eitan Eliahu
- Re: [ovs-dev] [PATCH 3/3] Avoid uniniti... Ben Pfaff
- Re: [ovs-dev] [PATCH 3/3] Avoid uninitialized varia... Ben Pfaff
- [ovs-dev] [PATCH 2/3] hash.h: Avoid compiler warnings wi... Gurucharan Shetty