The error output of gcc can become very large. This is especially annoying when I am using static assertions and am not interested in any messages that come after the failed assertion.
Is it possible limit the number of errors reported by gcc?
When looking up the gcc manual page on -Wfatal-errors (see the answer by @undur_gongor), I stumbled upon the option that directly answers my question:
-fmax-errors=n
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With