Limiting the Number of Errors Reported

Use the -wnn  option to limit the number of error messages displayed before the compiler aborts. By default, if more than 100 errors are displayed, compilation aborts.

Option Description
-wnn/i Limit the number of error diagnostics that will be displayed prior to aborting compilation to n. Remarks and warnings do not count towards this limit.

For example, the following command line specifies that if more than 50 error messages are displayed during the compilation of a.cpp, compilation aborts.

prompt>icpc -wn50 -c a.cpp