• <tfoot id='LGUCl'></tfoot>
    <i id='LGUCl'><tr id='LGUCl'><dt id='LGUCl'><q id='LGUCl'><span id='LGUCl'><b id='LGUCl'><form id='LGUCl'><ins id='LGUCl'></ins><ul id='LGUCl'></ul><sub id='LGUCl'></sub></form><legend id='LGUCl'></legend><bdo id='LGUCl'><pre id='LGUCl'><center id='LGUCl'></center></pre></bdo></b><th id='LGUCl'></th></span></q></dt></tr></i><div id='LGUCl'><tfoot id='LGUCl'></tfoot><dl id='LGUCl'><fieldset id='LGUCl'></fieldset></dl></div>

      <bdo id='LGUCl'></bdo><ul id='LGUCl'></ul>
  • <small id='LGUCl'></small><noframes id='LGUCl'>

      <legend id='LGUCl'><style id='LGUCl'><dir id='LGUCl'><q id='LGUCl'></q></dir></style></legend>

      1. MSVC++ 警告标志

        时间:2023-10-06
        <legend id='yQL9m'><style id='yQL9m'><dir id='yQL9m'><q id='yQL9m'></q></dir></style></legend>
        1. <small id='yQL9m'></small><noframes id='yQL9m'>

                <i id='yQL9m'><tr id='yQL9m'><dt id='yQL9m'><q id='yQL9m'><span id='yQL9m'><b id='yQL9m'><form id='yQL9m'><ins id='yQL9m'></ins><ul id='yQL9m'></ul><sub id='yQL9m'></sub></form><legend id='yQL9m'></legend><bdo id='yQL9m'><pre id='yQL9m'><center id='yQL9m'></center></pre></bdo></b><th id='yQL9m'></th></span></q></dt></tr></i><div id='yQL9m'><tfoot id='yQL9m'></tfoot><dl id='yQL9m'><fieldset id='yQL9m'></fieldset></dl></div>

                  <tbody id='yQL9m'></tbody>
                  <bdo id='yQL9m'></bdo><ul id='yQL9m'></ul>
                • <tfoot id='yQL9m'></tfoot>
                  本文介绍了MSVC++ 警告标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  使用 gccclang,我经常使用 -Wall -Wextra 警告标志.

                  With gcc and clang, I routinely use -Wall -Wextra warning flags.

                  Visual C++ 2010(和更新版本,如果有差异)的哪些命令行开关会产生大致相同的结果?

                  What command line switches for Visual C++ 2010 (and newer, if there are differences) would produce about same result?

                  此 MSDN 文档页面提供了技术细节,但我根据实际经验从 Visual C++ 开发人员那里得到了更定性的答案:经验法则"标志,您可以在开始时安全地投入任何新项目,但仍会捕获大致相同的内容其他编译器的 -Wall -Wextra 捕获.

                  This MSDN document page provides the technical details, but I am after a more qualitative answer from Visual C++ developers, based on practical experience: A "rule of thumb" flags you can safely throw on any new project when you start, that would still catch approximately the same things that -Wall -Wextra of the other compilers catch.

                  推荐答案

                  我同意@Paulius 的回答 这里 您在评论中链接到了./W4 将向您显示默认情况下未禁用的所有警告,这可能是您无需单独搜索每个警告并启用等效项即可获得的最接近大致相同的事物"的警告.MSVC 中的/Wall 将按照它所说的去做并打开所有警告(即使是有问题的警告),这对于任何重要的项目都会产生误报.这与 gcc -Wall 不同,后者只会打开不有问题"的警告.

                  I agree with @Paulius's answer here which you linked to in the comments. /W4 will show you all warnings that are not disabled by default, which is probably the closest you can get to "approximately the same things" without searching through each of the warnings individually and enabling the equivalent. /Wall in MSVC will do what it says and turn on all warnings (even the questionable ones), which for any non-trivial project will give false positives. This is different from gcc -Wall, which will only turn on warnings that are not "questionable".

                  这篇关于MSVC++ 警告标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在vc++中读取包含uxxxx的文件 下一篇:如何在 _T 包装器中使用变量?

                  相关文章

                  最新文章

                  • <bdo id='axIqp'></bdo><ul id='axIqp'></ul>
                  <i id='axIqp'><tr id='axIqp'><dt id='axIqp'><q id='axIqp'><span id='axIqp'><b id='axIqp'><form id='axIqp'><ins id='axIqp'></ins><ul id='axIqp'></ul><sub id='axIqp'></sub></form><legend id='axIqp'></legend><bdo id='axIqp'><pre id='axIqp'><center id='axIqp'></center></pre></bdo></b><th id='axIqp'></th></span></q></dt></tr></i><div id='axIqp'><tfoot id='axIqp'></tfoot><dl id='axIqp'><fieldset id='axIqp'></fieldset></dl></div>

                  <small id='axIqp'></small><noframes id='axIqp'>

                  1. <tfoot id='axIqp'></tfoot>

                    1. <legend id='axIqp'><style id='axIqp'><dir id='axIqp'><q id='axIqp'></q></dir></style></legend>