Re: gcc #pragma to temporarily disable specific warnings?
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.