From: João Távora Date: Fri, 4 Jan 2019 22:45:29 +0000 (+0000) Subject: Fix Flymake tests for GCC 8.2.0 X-Git-Tag: emacs-27.0.90~3868 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=04d3315271cd1357fbbc192505d00c760be02952;p=emacs.git 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. --- 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." (cl-loop while (search-forward-regexp - "^\\(In file included from \\)?:\\([0-9]+\\):\\([0-9]+\\):\n?\\(.*\\): \\(.*\\)$" + "^\\(In file included from \\)?:\\([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