Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"too many errors emitted stopping now" - How to increase or remove the limit?

So I'm doing some refactoring and it's really annoying that I don't get all the errors up front. How can I either increase the limit or remove the limit, so that the compiler will output all the errors it can find?

like image 239
Erik B Avatar asked Jul 29 '13 13:07

Erik B


3 Answers

So I found how to do it. You add this compiler flag:

-ferror-limit=0

0 means that it will not stop because of too many errors.

This seems to be a question and answer that explains how to add a compiler flag in Xcode 4:

Xcode Project-Wide compiler flag

like image 195
Erik B Avatar answered Sep 22 '22 12:09

Erik B


Preferences > General > [x] Continue Building After Errors

image of preferences dialog

like image 25
James O'Brien Avatar answered Sep 19 '22 12:09

James O'Brien


Here is the complete syntax to compile and pass the flags to the make command:

make install CFLAGS="-ferror-limit=0"

Also as outlined in the link below: https://developer.apple.com/library/content/documentation/Porting/Conceptual/PortingUnix/compiling/compiling.html

like image 37
John Nash Avatar answered Sep 19 '22 12:09

John Nash