aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-07-11 16:28:34 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-07-11 16:32:27 +0200
commit635db41c41a436cf0e8d27a5e70898b5332425ed (patch)
treef2cb13f582afff2959091b18b4e834386ad0e7e7 /lib.c
parentc9676a3b0349a1053c673243af52a2ef1b272bd7 (diff)
downloadsparse-dev-635db41c41a436cf0e8d27a5e70898b5332425ed.tar.gz
teach sparse about -fmax-errors
Currently, the maximum number of displayed errors is 100. This is nice to not be flooded with error messages when things are really broken but in some situation, for example testing, it is desirable to have all error messages. So, teach sparse about '-fmax-errors=COUNT'. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index d4f4dd30..4e8d7b45 100644
--- a/lib.c
+++ b/lib.c
@@ -90,7 +90,7 @@ static void do_error(struct position pos, const char * fmt, va_list args)
return;
/* Shut up warnings after an error */
has_error |= ERROR_CURR_PHASE;
- if (errors > 100) {
+ if (errors > fmax_errors) {
static int once = 0;
show_info = 0;
if (once)