Intel® C++ Compiler - Compiler Diagnostics (i.e. errors, warnings, or remarks)

Diagnostic Definitions

Currently, there is not a comprehensive document that lists the diagnostic (such as error, warning or remark) definitions for the Intel® C++ Compiler for Windows, Linux* and Mac OS*, and Intel® Parallel Composer. But we've started to document all the Intel C++ Compiler diagnostic messages in our Knowledge Base. If you need to find more information about a specific diagnostic, let us know at the Intel® C++ Compiler User Forum or the Intel® Parallel Studio User Forum.  This will help us prioritize diagnostic descriptions for updating.

The diagnostic page has the url link like below. The number "11003" is the diagnostic number that the Intel C++ Compiler emits in the output window.
     /en-us/articles/cdiag11003

Intel® C++ Compiler for Linux* and Mac OS* Diagnoses More Warnings than GNU Compilers

Typically the Intel® C++ Compiler emits more warnings than the GNU Compilers. These warnings alert programmers to potentially non-portable or dangerous situations.

To disable warnings or errors

If the diagnostic has a number associated with the message (for example, 111), you can disable the message:

prompt> icpc -wd111 a.cpp

You can disable multiple warnings by using a comma-separated list.

prompt> icpc -wd111,222,333 a.cpp

Intel® C++ Compiler for Windows* 10.1 or 11.0 Diagnoses More Warnings than Visual C++* Compiler

In most cases the Intel C++ Compiler for Windows emits more warnings than Visual C++ compiler. You can disable the warnings or errors with following command:

prompt> icl /Qwd111 a.cpp

Intel® Parallel Composer beta Behaves the same as Visual C++* Compiler in emitting diagnostics

By default the Intel Parallel Composer beta behaves the same as Visual C++ compiler in emitting diagnostics. If you'd like to see more warnings or errors, please add following option to the project property "C/C++ -> Command Line -> Additional Options" field.

/Qdiag-enable:level1

 

Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.