This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: invalid offsetof from non-POD type


On Tuesday, August 12, 2003, at 02:22 PM, skaller wrote:

On Tue, 2003-08-12 at 23:21, Fergus Henderson wrote:
The warning text appears to have been changed.
The new warning is

warning ("invalid access to non-static data member `%D' of NULL object",
member);
warning ("(perhaps the `offsetof' macro was used incorrectly)");


I think the warning can be disabled using `-Wno-invalid-offsetof'.

OK, can someone check please? I only have gcc 3.2.2, and the option appears not available there:

I added this option three months ago. It will appear in 3.4.


--Matt


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]