-isystem for MS Visual Studio C++ Compiler

后端 未结 4 1355
花落未央
花落未央 2021-02-20 06:54

I usually like to have a lot of warnings enabled when programming. However, some libraries contains code that easily causes warnings (.., python, Qt, ..). When compiling with gc

4条回答
  •  情书的邮戳
    2021-02-20 07:16

    As of 2017-08-17 this still seems impossible.

    I added a feature request here:

    https://developercommunity.visualstudio.com/content/problem/96411/impossible-to-ignore-warnings-from-system-librarie.html

    Update 2018:

    The issue is now closed as fixed and is available in the standard MS VS installation [source]. A blog post from the MS team goes through the new features [here].

    The solution from MS is flexible. You can not only differentiate using paths like you do with --isystem, but for example also by whether you use #include "" or #include <>. The blog post is worth a read to see all the various customization points.

提交回复
热议问题