News for hackers. Stuff that matters.
Re:My C code works with -O3 but not with -O0 by asveikau on Thursday January 16, 2020 @10:55AM (#22065647)
A pretty common way to do the offset_of thing is to take a null pointers. Eg: &foo->member where foo is null.

sizeof on invalid pointer dereferences is also pretty common.

There are no comments on this comment yet.