• 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: Gcc warning instead of error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gcc warning instead of error


  • Subject: Re: Gcc warning instead of error
  • From: Stefan Werner <email@hidden>
  • Date: Tue, 22 Jul 2008 14:01:25 +0200


On Jul 22, 2008, at 9:58 AM, Steve Checkoway wrote:

with the warning, "warning: cannot pass objects of non-POD type ‘struct foo’ through ‘...’; call will abort at runtime."

Or in other words, the compiler says "I have no idea what to do with this - I'll compile it anyway and make it look like a crash to your users."


I cannot think of a single situation where I want gcc to insert a trap in my code rather than signal an error on what is typically bad arguments to printf(). Is there a way to make this an error other than -Werror which (unfortunately) I cannot use as there are warnings in code I can't change?

Good question. I ran into the same problem and did not find any solution to this. I think the usual route applies - file bug reports and hope someone listens.


I'm at loss at how someone could decide that this should be a warning and not an error. If the compiler can't generate meaningful code it should just not generate any code at all.

-Stefan _______________________________________________
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: Gcc warning instead of error
      • From: Steve Checkoway <email@hidden>
References: 
 >Gcc warning instead of error (From: Steve Checkoway <email@hidden>)

  • Prev by Date: add a button in IKIMAGEBROWSERVIEW
  • Next by Date: Using NSPipe with NSStream?
  • Previous by thread: Gcc warning instead of error
  • Next by thread: Re: Gcc warning instead of error
  • Index(es):
    • Date
    • Thread