aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Távora2019-01-04 22:45:29 +0000
committerJoão Távora2019-01-05 11:38:36 +0000
commit04d3315271cd1357fbbc192505d00c760be02952 (patch)
tree7e8a65b1c3a04b4e6a096f6de25cad807855a27a
parent16e2554880381d5cef4ec209675c084bc96d09e1 (diff)
downloademacs-04d3315271cd1357fbbc192505d00c760be02952.tar.gz
emacs-04d3315271cd1357fbbc192505d00c760be02952.zip
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.
-rw-r--r--lisp/progmodes/flymake-cc.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/flymake-cc.el b/lisp/progmodes/flymake-cc.el
index e8069f5c17b..524521d7db2 100644
--- a/lisp/progmodes/flymake-cc.el
+++ b/lisp/progmodes/flymake-cc.el
@@ -58,13 +58,13 @@ SOURCE."
58 (cl-loop 58 (cl-loop
59 while 59 while
60 (search-forward-regexp 60 (search-forward-regexp
61 "^\\(In file included from \\)?<stdin>:\\([0-9]+\\):\\([0-9]+\\):\n?\\(.*\\): \\(.*\\)$" 61 "^\\(In file included from \\)?<stdin>:\\([0-9]+\\)\\(?::\\([0-9]+\\)\\)?:\n?\\(.*\\): \\(.*\\)$"
62 nil t) 62 nil t)
63 for msg = (match-string 5) 63 for msg = (match-string 5)
64 for (beg . end) = (flymake-diag-region 64 for (beg . end) = (flymake-diag-region
65 source 65 source
66 (string-to-number (match-string 2)) 66 (string-to-number (match-string 2))
67 (string-to-number (match-string 3))) 67 (and (match-string 3) (string-to-number (match-string 3))))
68 for type = (if (match-string 1) 68 for type = (if (match-string 1)
69 :error 69 :error
70 (assoc-default 70 (assoc-default