• 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 #pragma to temporarily disable specific warnings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc #pragma to temporarily disable specific warnings?


  • Subject: Re: gcc #pragma to temporarily disable specific warnings?
  • From: Steve Hartwell <email@hidden>
  • Date: Fri, 27 Aug 2004 21:21:43 -0700

On Aug 27, 2004, at 5:53 PM, Sean McBride wrote:
Are there pragmas I can use to turn off a specific warning that gcc emits?

This is among top N most requested features for gcc, but for some reason I can't recall, the author(s) don't want to implement it.


For example, I need to use some 3rd party code (that I don't want to
change much, so I can easily diff & merge new versions from said 3rd
party) and gcc gives me hundreds of '"/*" within comment' warnings. Is
there some kind of pragma so I can turn off that warning just for that file?

Since there is no pragma, to suppress this particular warning for specific source files, you could select one or more of them in the Groups & Files panel, and in the Get Info/Inspector window, choose the "Build" tab and enter -Wno-comment.


hth,

Steve Hartwell
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: gcc #pragma to temporarily disable specific warnings?
      • From: Stan Shebs <email@hidden>
    • Re: gcc #pragma to temporarily disable specific warnings?
      • From: "Sean McBride" <email@hidden>
References: 
 >gcc #pragma to temporarily disable specific warnings? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: IB setting wrong image size
  • Next by Date: Re: SEMI-OFFTOPIC: can gcc be made into a server architecture that can talk with XCode?
  • Previous by thread: gcc #pragma to temporarily disable specific warnings?
  • Next by thread: Re: gcc #pragma to temporarily disable specific warnings?
  • Index(es):
    • Date
    • Thread