The Seriousness of GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO
The Seriousness of GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO
- Subject: The Seriousness of GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO
- From: Lyndsey Ferguson <email@hidden>
- Date: Thu, 15 Mar 2007 10:18:23 -0400
- Thread-topic: The Seriousness of GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO
Hello Everyone,
I wanted your opinion of about how serious the
GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO compiler option is to be taken.
According to the ANSI C++, offsetof is undefined for non-POD* objects,
including any class or struct with a constructor. Many of our structure
types are not PODs by this definition.
Apparently, in practice, this has been found to be an unnecessary
restriction on offsetof, and it is expected that this will be loosened in
future versions of the Standard.
How serious is this warning? We would like to turn of this warning in an
attempt to come closer to 0 warnings.
Thank you for your advice,
Lyndsey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden