• 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
Re: "-Wno-import" does not suppress "#import is a GCC extension" warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "-Wno-import" does not suppress "#import is a GCC extension" warnings


  • Subject: Re: "-Wno-import" does not suppress "#import is a GCC extension" warnings
  • From: Thomas Ferraro <email@hidden>
  • Date: Wed, 3 Mar 2010 13:03:37 -0500

On Wed, Mar 3, 2010 at 11:38 AM, Sean McBride <email@hidden> wrote:
> On 3/2/10 8:10 PM, Thomas Ferraro said:
>
>>In Xcode 3.0 and 3.1.4,  the "-Wno-import" flag does not suppress
>>"#import is a GCC extension" compiler warnings.
>>Is this fixed in Xcode 3.2?
>>Sorry I do not have machine with 3.2 installed right now to check it.
>
> Help us help you.  Can you provide a little example for someone with 3.2
> to try compiling?  Are you talking about using -pedantic?  I remember
> being disappointed that -pedantic was useless with Obj-C because it
> warned about #import, but I just tried now and that seems fixed.
> However, pedantic still seems useless, because it warns for every Obj-C
> class saying: "warning: struct has no named members".


Yes, sorry. Asking if the "-Wno-import" flag suppresses the "#import
is a GCC extension" compiler warnings when using "-pedantic" in Xcode
3.2.

On Xcode 3.0 and 3.1.4 using "-pedantic", I get "#import is a GCC
extension" but do NOT get
"warning: struct has no named members" on all classes, just when I
really have an empty struct!

For the record, my warning build settings follow. I've basically
enabled everything I can, except "prototype conversion" and C++
warnings:
   11 GCC_WARN_CHECK_SWITCH_STATEMENTS = YES
   12 GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = NO
   13 GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES
   14 GCC_WARN_SHADOW = YES
   15 GCC_WARN_64_TO_32_BIT_CONVERSION = YES
   16 GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = YES
   17 GCC_WARN_INHIBIT_ALL_WARNINGS = NO
   18 GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES
   19 GCC_WARN_ABOUT_RETURN_TYPE = YES
   20 GCC_WARN_MISSING_PARENTHESES = YES
   21 GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
   22 GCC_WARN_ABOUT_MISSING_NEWLINE = YES
   23 GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES
   24 WARNING_CFLAGS = -Wall -Wextra -Wno-import
   25 GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES
   26 GCC_WARN_PEDANTIC = YES
   27 GCC_WARN_ABOUT_POINTER_SIGNEDNESS = YES
   28 GCC_WARN_PROTOTYPE_CONVERSION = NO
   29 GCC_WARN_SIGN_COMPARE = YES
   30 GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES
   31 GCC_TREAT_NONCONFORMANT_CODE_ERRORS_AS_WARNINGS = YES
   32 //GCC_TREAT_WARNINGS_AS_ERRORS = YES
   33 GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES
   34 GCC_WARN_UNINITIALIZED_AUTOS = YES
   35 GCC_WARN_UNKNOWN_PRAGMAS = YES
   36 GCC_WARN_UNUSED_FUNCTION = YES
   37 GCC_WARN_UNUSED_LABEL = YES
   38 GCC_WARN_UNUSED_PARAMETER = YES
   39 GCC_WARN_UNUSED_VALUE = YES
   40 GCC_WARN_UNUSED_VARIABLE = YES
   41 GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES
   42 GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = YES
 _______________________________________________
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: "-Wno-import" does not suppress "#import is a GCC extension" warnings
      • From: "Sean McBride" <email@hidden>
References: 
 >"-Wno-import" does not suppress "#import is a GCC extension" warnings (From: Thomas Ferraro <email@hidden>)
 >Re: "-Wno-import" does not suppress "#import is a GCC extension" warnings (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: xcodebuilds fails where Xcode.app succeeds; source tree problem
  • Next by Date: Re: xcodebuilds fails where Xcode.app succeeds; source tree problem
  • Previous by thread: Re: "-Wno-import" does not suppress "#import is a GCC extension" warnings
  • Next by thread: Re: "-Wno-import" does not suppress "#import is a GCC extension" warnings
  • Index(es):
    • Date
    • Thread