tags:

views:

84

answers:

2

Hello All,

I am building an application in C++, Mac OS X, Qt and using boost libraries. Every time i build a project I get a huge list of warnings only from boost libraries itself. I want to turn off them so that I can see only my project specific warnings and errors.

Can anybody help me?

Thanks, Rahul

A: 

GCC Warning options

I don't believe gcc has any pragmas for turning off specific warnings temporarily, but those can get rid of them on a per-file basis if your build is set up right.

What are the warnings? Even if they originate withing boost, they could be because of how you're using them, in which case you should probably be fixing them rather than ignoring them.

*edit: A further search yielded this suggestion.

Dennis Zickefoose
+6  A: 

Use -isystem instead of -I to add Boost headers to include path. This option means to treat headers found there as system headers, and suppress warnings originating there.

Laurynas Biveinis