Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn off the warnings due to boost library

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.

How to turn them off, so that I can see only my project specific warnings and errors?

like image 668
RLT Avatar asked Mar 16 '10 05:03

RLT


People also ask

What is Boost library used for?

Boost is a set of libraries for the C++ programming language that provides support for tasks and structures such as linear algebra, pseudorandom number generation, multithreading, image processing, regular expressions, and unit testing.

Is Boost library header only?

Most Boost libraries are header-only: they consist entirely of header files containing templates and inline functions, and require no separately-compiled library binaries or special treatment when linking. The only Boost libraries that must be built separately are: Boost.

Are Boost libraries peer reviewed?

Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work well with the C++ Standard Library. Boost libraries are intended to be widely useful, and usable across a broad spectrum of applications.

How do I contribute to Boost library?

To participate in development, you need to subscribe to the Boost developers' list. Once you've done that, some paths to contribution are: Submit patches for new features or bug fixes. Pick any ticket from our bug tracking system on GitHub and get started.


1 Answers

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.

like image 88
Laurynas Biveinis Avatar answered Oct 22 '22 03:10

Laurynas Biveinis