How to instruct GCC to stop after 5 errors?

The command-line option -fmax-errors=N directs the compiler to give up after N errors. This option is present in GCC 4.6 and later.

The command-line option -Wfatal-errors directs the compiler to give up after one error. This option is present in GCC 4.0 and later.

In both cases, warnings do not count toward the limit unless you also specify -Werror.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)