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:
parent
16e2554880
commit
04d3315271
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue