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

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

        • <bdo id='3j6ng'></bdo><ul id='3j6ng'></ul>
        <tfoot id='3j6ng'></tfoot>

        <small id='3j6ng'></small><noframes id='3j6ng'>

        MSVC++ 警告标志

        MSVC++ warning flags(MSVC++ 警告标志)
          <tbody id='vBQQp'></tbody>
        <i id='vBQQp'><tr id='vBQQp'><dt id='vBQQp'><q id='vBQQp'><span id='vBQQp'><b id='vBQQp'><form id='vBQQp'><ins id='vBQQp'></ins><ul id='vBQQp'></ul><sub id='vBQQp'></sub></form><legend id='vBQQp'></legend><bdo id='vBQQp'><pre id='vBQQp'><center id='vBQQp'></center></pre></bdo></b><th id='vBQQp'></th></span></q></dt></tr></i><div id='vBQQp'><tfoot id='vBQQp'></tfoot><dl id='vBQQp'><fieldset id='vBQQp'></fieldset></dl></div>

      1. <legend id='vBQQp'><style id='vBQQp'><dir id='vBQQp'><q id='vBQQp'></q></dir></style></legend>
          <bdo id='vBQQp'></bdo><ul id='vBQQp'></ul>
            • <tfoot id='vBQQp'></tfoot>

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

                1. 本文介绍了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++ 警告标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to print vector#39;s data(如何打印矢量的数据)
                  Visual C++ appends 0xCC (int3) bytes at the end of functions(Visual C++ 在函数末尾附加 0xCC (int3) 字节)
                  How to use a variable inside a _T wrapper?(如何在 _T 包装器中使用变量?)
                  How to read file which contains uxxxx in vc++(如何在vc++中读取包含uxxxx的文件)
                  stack overflow error in C++ program(C++程序中的堆栈溢出错误)
                  std::unordered_map very high memory usage(std::unordered_map 非常高的内存使用率)
                  <legend id='RVBY6'><style id='RVBY6'><dir id='RVBY6'><q id='RVBY6'></q></dir></style></legend>

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

                        • <small id='RVBY6'></small><noframes id='RVBY6'>

                        • <tfoot id='RVBY6'></tfoot>
                            <bdo id='RVBY6'></bdo><ul id='RVBY6'></ul>