> > > > ------- Comment #6 from bero at arklinux dot org 2006-05-23 21:41 ------- > It is creative offsetof indeed -- this a "explanation" from a bit of code > referenced to this one [while it isn't free yet, its license does allow > posting > bits of it online]: > Looks like someone was desperate to get his stuff to compile with -Werror > without having to fix the cause.
Well it is undefined for non-PODs to do offsetof which is why GCC warns. -- Pinski