Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc #pragma to temporarily disable specific warnings?



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.


References: 
 >gcc #pragma to temporarily disable specific warnings? (From: "Sean McBride" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.