complaint_internal had an off-by-one error, where it would allow one
extra complaint to be issued.
gdb/ChangeLog
2018-10-04 Tom Tromey <tom@tromey.com>
* complaints.c (complaint_internal): Correctly check complaint
count.
2018-10-04 Tom Tromey <tom@tromey.com>
+ * complaints.c (complaint_internal): Correctly check complaint
+ count.
+
+2018-10-04 Tom Tromey <tom@tromey.com>
+
* complaints.h (struct complaints): Remove declaration.
* complaints.c (clear_complaints): Remove an unused variable.
{
va_list args;
- if (counters[fmt]++ > stop_whining)
+ if (++counters[fmt] > stop_whining)
return;
va_start (args, fmt);