From 1625fc184bebf0ce3c2782563aaa4029cdc95f3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 28 Mar 2019 17:51:12 +0000 Subject: [PATCH] Don't create nil-severity diagnostics in the Flymake C/C++ backend * lisp/progmodes/flymake-cc.el (flymake-cc--make-diagnostics): Use `:error` as a diagnostic severity. --- lisp/progmodes/flymake-cc.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/flymake-cc.el b/lisp/progmodes/flymake-cc.el index 1b449bd0793..5733ef4d666 100644 --- a/lisp/progmodes/flymake-cc.el +++ b/lisp/progmodes/flymake-cc.el @@ -72,7 +72,8 @@ SOURCE." '(("error" . :error) ("note" . :note) ("warning" . :warning)) - #'string-match)) + #'string-match + :error)) collect (flymake-make-diagnostic source beg end type msg))) (defun flymake-cc-use-special-make-target () -- 2.39.2