diff --git a/lisp/progmodes/flymake-cc.el b/lisp/progmodes/flymake-cc.el index 248c95a256f..1b449bd0793 100644 --- a/lisp/progmodes/flymake-cc.el +++ b/lisp/progmodes/flymake-cc.el @@ -58,9 +58,7 @@ SOURCE." (cl-loop while (search-forward-regexp - (concat - "^\\(In file included from \\)?:\\([0-9]+\\)\\(?::\\([0-9]+\\)\\)" - "?:[\n ]?\\(error\\|warning\\|note\\): \\(.*\\)$") + "^\\(In file included from \\)?:\\([0-9]+\\)\\(?::\\([0-9]+\\)\\)?:\n?\\(.*\\): \\(.*\\)$" nil t) for msg = (match-string 5) for (beg . end) = (flymake-diag-region