chila
chila

Reputation: 2442

Maximum number of errors while compiling with Clang

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

Answers (1)

Florian Sowade
Florian Sowade

Reputation: 1747

The equivalent clang flag is -ferror-limit:

clang -ferror-limit=2 test.c

Upvotes: 25

Related Questions