Source Code Analysis does not report errors

Submit New Article

Last Modified On :   May 12, 2009 12:05 PM PDT
Rate
 


If you are using Source Code Analysis, -diag-enable sc (Linux OS and Mac OS X) or /Qdiag-enable:sc (Windows OS), and do not see expected errors reported, it may be because of other compiler options you are using as discussed in the compiler documentation:


Using Source Code Analysis Options with Other Compiler Options
If the -c (Linux OS and Mac OS X) or /c (Windows OS) compiler option is used on
the command line along with a command line option to enable source code analysis,
an object file is created; source code analysis diagnostics are not produced.




This article applies to: Intel® C++ Compiler for Linux* Knowledge Base,   Intel® C++ Compiler for Mac OS X* Knowledge Base,   Intel® C++ Compiler for Windows* Knowledge Base,   Intel® Fortran Compiler for Linux* Knowledge Base,   Intel® Fortran Compiler for Mac OS X* Knowledge Base,   Intel® Visual Fortran Compiler for Windows* Knowledge Base