3 ms·
It's usually possible to selectively disable warnings for 3rd party code. A last-ditch approach is to use the following around an include: #pragma GCC dia
by loeg 9y ago
It's usually possible to selectively disable warnings for 3rd party code. A last-ditch approach is to use the following around an include:
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wfoo"
#include <my_3rd_party_header.h>
#pragma GCC diagnostic pop
E.g., https://stackoverflow.com/questions/3378560/how-to-disable-gcc-warnings-for-a-few-lines-of-code https://stackoverflow.com/questions/3378560/how-to-disable-g...
(Despite the "GCC" moniker, Clang supports the same approach.)