Disable grag pragma message

I am compiling a project in C ++ with gcc version 4.9.2 (Debian 4.9.2-10).

The project uses the cpp_netlib library, which includes boost spirit.

He displays a lot # pragma message("NOTE: Use of this header (some_file.hpp) is deprecated").

Is there any way to get rid of this?

I know there are a lot of questions in SO, but I'm not sure if any of them really provide a viable solution.

Thanks,

+4
source share
1 answer

There seems to be absolutely no way to disable the #pragma message.

There is an extra ticket to this annoying use of pragma.

In short, I removed them from the headers.

find $ROOT_DEPS_BUILD_PATH/boost/include -type f -exec sed -i '/pragma.*deprecated/d' {} \;

+3
source

Source: https://habr.com/ru/post/1628222/


All Articles