Maximum compilation errors with Clang 3.4

When I try to use the -fmax-errors flag with clang ++, the following warning is displayed:

clang: warning: argument unused during compilation: '-fmax-errors=2' 

What is the clan equivalent?

+7
c ++ clang llvm
source share
1 answer

Equivalent clang flag -ferror-limit :

 clang -ferror-limit=2 test.c 
+11
source share

All Articles