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