Original Post
Hi everybody. I'm have almost finished writing my Makefiles for my current project. I have an annoying problem. I activate a bunch of warnings in my gcc options in order to detect things like unreachable code instructions. The problem is that std::vector, std::string and other includes like these contain code which triggers warnings. I obviously don't want to see these warnings but I don't know how to hide them. In gcc manual, when describing the warning about effective c++ warnings, it is said that we must use grev -v to remove unwanted warnings from the stl. However, each of these warnings take more than one line and I don't know how to remove all the unwanted lines. Warnings are like this: Anybody knows how to not display these warnings ? Thanks.
In file included from blabla.cpp,
In file include from blabla.hpp,
In file string.h
Warning: unreachable code in ...