]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't create nil-severity diagnostics in the Flymake C/C++ backend
authorJoão Távora <joaotavora@gmail.com>
Thu, 28 Mar 2019 17:51:12 +0000 (17:51 +0000)
committerJoão Távora <joaotavora@gmail.com>
Tue, 2 Jul 2019 15:09:52 +0000 (16:09 +0100)
* lisp/progmodes/flymake-cc.el (flymake-cc--make-diagnostics): Use
`:error` as a diagnostic severity.

lisp/progmodes/flymake-cc.el

index 1b449bd07934eee47c754dfdaaf93180174475d0..5733ef4d66627850b51a064078749ac55be3dcdd 100644 (file)
@@ -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 ()