Reputation: 2442
When I try to use the '-fmax-errors=n' option with clang++
the following warning is output:
clang: warning: argument unused during compilation: '-fmax-errors=2'
What is the clang equivalent?
Upvotes: 15
Views: 4850
Reputation: 1747
The equivalent clang flag is -ferror-limit
:
clang -ferror-limit=2 test.c
Upvotes: 25