更新时间:2021-07-10 22:00:41
使用GCC时,您可以使用 -isystem
-I
标志以禁用该位置的警告。
When using GCC you can use the -isystem
flag instead of the -I
flag to disable warnings from that location.
因此,如果您目前使用
gcc -Iparent/path/of/bar …
使用
gcc -isystem parent/path/of/bar …
不幸的是,这不是一个特别细粒度的控制。我不知道有更有针对性的机制。
instead. Unfortunately, this isn’t a particularly fine-grained control. I’m not aware of a more targeted mechanism.