summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2019-03-28 17:51:12 +0000
committerJoão Távora <joaotavora@gmail.com>2019-07-02 16:09:52 +0100
commit1625fc184bebf0ce3c2782563aaa4029cdc95f3d (patch)
tree5c04b984e8f1e972c8e99851d2db0e354cb02234
parentf75e68fc9be2e7d9e3da46a83204ea88e4854174 (diff)
downloademacs-1625fc184bebf0ce3c2782563aaa4029cdc95f3d.tar.gz
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."
'(("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 ()