From: João Távora Date: Thu, 28 Mar 2019 17:51:12 +0000 (+0000) Subject: Don't create nil-severity diagnostics in the Flymake C/C++ backend X-Git-Tag: emacs-27.0.90~2127 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1625fc184bebf0ce3c2782563aaa4029cdc95f3d;p=emacs.git 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. --- 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 ()