aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Távora2019-03-28 17:51:12 +0000
committerJoão Távora2019-07-02 16:09:52 +0100
commit1625fc184bebf0ce3c2782563aaa4029cdc95f3d (patch)
tree5c04b984e8f1e972c8e99851d2db0e354cb02234
parentf75e68fc9be2e7d9e3da46a83204ea88e4854174 (diff)
downloademacs-1625fc184bebf0ce3c2782563aaa4029cdc95f3d.tar.gz
emacs-1625fc184bebf0ce3c2782563aaa4029cdc95f3d.zip
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.
-rw-r--r--lisp/progmodes/flymake-cc.el3
1 files changed, 2 insertions, 1 deletions
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."
72 '(("error" . :error) 72 '(("error" . :error)
73 ("note" . :note) 73 ("note" . :note)
74 ("warning" . :warning)) 74 ("warning" . :warning))
75 #'string-match)) 75 #'string-match
76 :error))
76 collect (flymake-make-diagnostic source beg end type msg))) 77 collect (flymake-make-diagnostic source beg end type msg)))
77 78
78(defun flymake-cc-use-special-make-target () 79(defun flymake-cc-use-special-make-target ()