common: add macros to silence invalid offsetof warnings
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 12 May 2022 18:29:25 +0000 (14:29 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 13 Jun 2022 20:34:46 +0000 (16:34 -0400)
commitbd2c951e542d484ca308a0e8de6b1b420ffef2ce
tree85bb59319c0539c96d614b21b8797e37d1e25762
parentbaac5795bc71176909898f7fcbf59dc822f11f4f
common: add macros to silence invalid offsetof warnings

Implementations are not forced to support offsetof for non-trivial types
in C++. gcc and clang both appear to support its use, but we should move
away from that. unfortunately that is not easy since offsetof is used
all over the place to use intrusive data structures.

I am unsure of the proper fix for this at the moment.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I6f2cedb0da235ff3756248f370add13d46438cec
src/common/macros.hpp
This page took 0.025666 seconds and 5 git commands to generate.