introduced a GCC-like -Werror=type

* src/complain.h : errors_flag variable
* src/complain.c : actual stuff happens here
* src/conflits.c : differentiated SR and RR conflicts
* src/getargs.c : flags_argmatch recognizes the new -Werror format
This commit is contained in:
Theophile Ranquet
2012-09-20 12:21:28 +02:00
committed by yro3ht
parent 47f6a236ec
commit 981c53e257
4 changed files with 77 additions and 31 deletions

View File

@@ -602,8 +602,10 @@ conflicts_print (void)
}
if (src_total | rrc_total)
{
if (expected_sr_conflicts == -1 && expected_rr_conflicts == -1)
set_warning_issued ();
if (expected_sr_conflicts == -1 && src_total)
set_warning_issued (Wconflicts_sr);
if (expected_rr_conflicts == -1 && rrc_total)
set_warning_issued (Wconflicts_rr);
if (! yacc_flag)
fprintf (stderr, "%s: ", current_file);
conflict_report (stderr, src_total, rrc_total);