2 ms·
> Compilers have no trouble ignoring header files outside of your project for the sake of warnings with -isystem instead of -I, it's not different for linters
by inetknght 4y ago
> Compilers have no trouble ignoring header files outside of your project for the sake of warnings with -isystem instead of -I, it's not different for linters
In this [0] example I shared in other related comments, the static analyzer suppressed warnings in such headers.
> 126 warnings generated.
> Suppressed 124 warnings (124 in non-user code).
[0]: https://gcc.godbolt.org/z/nK7MdEcMj https://gcc.godbolt.org/z/nK7MdEcMj