• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
The Seriousness of GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: The Seriousness of GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO
      • From: "Mark Wagner" <email@hidden>
  • Prev by Date: Re: Unavailable Function Errors and Backwards Compatability
  • Next by Date: Re: Unavailable Function Errors and Backwards Compatability
  • Previous by thread: using icu
  • Next by thread: Re: The Seriousness of GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO
  • Index(es):
    • Date
    • Thread