I try to compile my testproject with gcc 4.8.5. To exclude a warning messages from third-party code I put all external headers into my header - external.h:
#pragma GCC diagnostic push#pragma GCC diagnostic ignored "-Wall"...#include "Object.h"...#pragma GCC diagnostic pop
This works fine for warnings, but I see in gcc output many messages like below:
In file included from /home/testuser/testproject/external.h:26:0, from /home/testuser/testproject/main.cpp:14:/home/testuser/externallib/Object.h: In instantiation of ‘int ObjectImpl<T_Class, T_Type, T_Size>::addChild(IObj*, unsigned int) [with T_Class = Shape; ObjType T_Type = (ObjType)12u; unsigned int T_Size = 20u:/home/testuser/externallib/Object.h:1618:43: required from here/home/testuser/externallib/Object.h:817:5: note: declarations in dependent base ‘ObjBase’ are not found by unqualified lookup/home/testuser/externallib/Object.h:817:5: note: use ‘this->get_Obj’ instead
...
Unfortunately, I can't change the third-party code to hide that messages. Could anyone provide a way how to hide 'note:' messages when project builds? This will make my build-logs more clean :). Thanks in advance.