Maximum number of errors while compiling with Clang

c++, clang, llvm

Solution

The equivalent clang flag is `-ferror-limit`:

clang -ferror-limit=2 test.c

Problem

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?

Original source