• 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: Per-file Warnings suppression?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Per-file Warnings suppression?


  • Subject: Re: Per-file Warnings suppression?
  • From: "Michael Crawford" <email@hidden>
  • Date: Wed, 1 Oct 2008 18:06:59 -0700

On Wed, Oct 1, 2008 at 10:11 AM, Brian Stern <email@hidden> wrote:
> What would make all of this much simpler would be if gcc had a way of
> turning on/off warnings and other compiler settings in the source code.  I
> don't think it has any way to do that.  Is this a feature that's ever been
> suggested for gcc? Is there any likelihood of it ever being implemented?

The natural way to do that would be to use a #pragma, which is what
Visual Studio does, but #pragma's give Richard Stallman hives because
they're not portable.

I doubt it's ever happened, but in principle a #pragma could be
implemented that is required on one platform, but causes compilation
failures or even runtime crashes on another.

Mike
--
Michael David Crawford
mdcrawford at gmail dot com

   Enjoy my art, photography, music and writing at
http://www.geometricvisions.com/
        --- Free Compact Disc ---
 _______________________________________________
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: Per-file Warnings suppression?
      • From: Brian Stern <email@hidden>
    • Re: Per-file Warnings suppression?
      • From: Peter O'Gorman <email@hidden>
References: 
 >Re: Per-file Warnings suppression? (From: Chris Espinosa <email@hidden>)
 >Re: Per-file Warnings suppression? (From: Brian Stern <email@hidden>)

  • Prev by Date: Re: using a non standard openssl
  • Next by Date: link error.
  • Previous by thread: Re: Per-file Warnings suppression?
  • Next by thread: Re: Per-file Warnings suppression?
  • Index(es):
    • Date
    • Thread