Fix Flymake tests for GCC 8.2.0

Fixes: bug#33872

"Now you have two problems..."

* lisp/progmodes/flymake-cc.el (flymake-cc--make-diagnostics):
Adjust regexp.
This commit is contained in:
João Távora 2019-01-04 22:45:29 +00:00
parent 16e2554880
commit 04d3315271

View file

@ -58,13 +58,13 @@ SOURCE."
(cl-loop
while
(search-forward-regexp
"^\\(In file included from \\)?<stdin>:\\([0-9]+\\):\\([0-9]+\\):\n?\\(.*\\): \\(.*\\)$"
"^\\(In file included from \\)?<stdin>:\\([0-9]+\\)\\(?::\\([0-9]+\\)\\)?:\n?\\(.*\\): \\(.*\\)$"
nil t)
for msg = (match-string 5)
for (beg . end) = (flymake-diag-region
source
(string-to-number (match-string 2))
(string-to-number (match-string 3)))
(and (match-string 3) (string-to-number (match-string 3))))
for type = (if (match-string 1)
:error
(assoc-default