A
A
Anton2013-06-11 18:44:02
C++ / C#
Anton, 2013-06-11 18:44:02

GCC 4.8.1 - how to disable warnings generated by libraries (boost, Qt, etc...)?

Good day… I have a project that builds with the following options:
-Wextra -Wall -Werror -Wfatal-errors -pedantic -pedantic-errors
When I used GCC 4.7.*, everything built fine, but when I switch to 4.8.1, the compiler stops at the first warning from the boost header file… Is there any way to disable all warnings for external header files, but leave them for project files?
PS I use the MinGW-builds build under Windows, I use CMake to build ...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DancingOnWater, 2013-06-12
@DancingOnWater

Or maybe it's worth dealing with varnings?

T
turboNOMAD, 2013-06-11
@turboNOMAD

First result on google

A
abikineev, 2013-11-29
@abikineev

#include "boost/config/warning_disable.hpp"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question