Thread (4 messages) 4 messages, 2 authors, 2021-07-06

Re: [PATCH 1/2] libext2fs: use statement-expression for container_of only on GNU-compatible compilers

From: "Theodore Ts'o" <tytso@mit.edu>
Date: 2021-07-06 00:29:00

On Wed, Apr 14, 2021 at 12:41:27AM -0700, Michael Forney wrote:
Functionally, the statement-expression is not necessary here; it
just gives a bit of type-safety to make sure the pointer really
does have a compatible type with the specified member of the struct.

When statement expressions are not available, we can just use a
portable fallback macro that skips this member type check.

Signed-off-by: Michael Forney <redacted>
Applied, thanks.

						- Ted
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help