Bram Moolenaar | 0ab2a88 | 2009-05-13 10:51:08 +0000 | [diff] [blame] | 1 | " Vim tool: Filter output of splint |
| 2 | " |
| 3 | " Maintainer: Bram Moolenaar <Bram@vim.org> |
Bram Moolenaar | 5fd0ca7 | 2009-05-13 16:56:33 +0000 | [diff] [blame] | 4 | " Last Change: 2009 May 13 |
Bram Moolenaar | 0ab2a88 | 2009-05-13 10:51:08 +0000 | [diff] [blame] | 5 | |
| 6 | " Usage: redirect output of "make lint" to a file, edit that file with Vim and |
| 7 | " :call CleanLint() |
| 8 | " This deletes irrelevant messages. What remains might be valid warnings. |
| 9 | |
| 10 | fun! CleanLint() |
Bram Moolenaar | 0ab2a88 | 2009-05-13 10:51:08 +0000 | [diff] [blame] | 11 | g/Assignment of dev_t to __dev_t:/lockmarks d |
| 12 | g/Assignment of __dev_t to dev_t:/lockmarks d |
| 13 | g/Operands of == have incompatible types (__dev_t, dev_t): /lockmarks d |
Bram Moolenaar | 5fd0ca7 | 2009-05-13 16:56:33 +0000 | [diff] [blame] | 14 | g/Operands of == have incompatible types (char_u, int): /lockmarks d |
Bram Moolenaar | 0ab2a88 | 2009-05-13 10:51:08 +0000 | [diff] [blame] | 15 | g/Assignment of char to char_u: /lockmarks d |
| 16 | g/Assignment of unsigned int to int: /lockmarks d |
Bram Moolenaar | 5fd0ca7 | 2009-05-13 16:56:33 +0000 | [diff] [blame] | 17 | g/Assignment of int to unsigned int: /lockmarks d |
| 18 | g/Assignment of unsigned int to long int: /lockmarks d |
Bram Moolenaar | 0ab2a88 | 2009-05-13 10:51:08 +0000 | [diff] [blame] | 19 | g/Assignment of int to char_u: /lockmarks d |
| 20 | g/Function .* expects arg . to be wint_t gets int: /lockmarks d |
Bram Moolenaar | 5fd0ca7 | 2009-05-13 16:56:33 +0000 | [diff] [blame] | 21 | g/Function .* expects arg . to be size_t gets int: /lockmarks d |
| 22 | g/Initial value of .* is type char, expects char_u: /lockmarks d |
| 23 | g/^ex_cmds.h:.* Function types are inconsistent. Parameter 1 is implicitly temp, but unqualified in assigned function:/lockmarks d |
| 24 | g/^ex_docmd.c:.* nospec_str/lockmarks d |
Bram Moolenaar | 0ab2a88 | 2009-05-13 10:51:08 +0000 | [diff] [blame] | 25 | g/^digraph.c.*Additional initialization errors for digraphdefault not reported/lockmarks d |
| 26 | g/Function strncasecmp expects arg 3 to be int gets size_t: /lockmarks d |
Bram Moolenaar | 5fd0ca7 | 2009-05-13 16:56:33 +0000 | [diff] [blame] | 27 | g/^ Types are incompatible/lockmarks d |
Bram Moolenaar | 0ab2a88 | 2009-05-13 10:51:08 +0000 | [diff] [blame] | 28 | g/ To ignore signs in type comparisons use +ignoresigns/lockmarks d |
| 29 | g/ To allow arbitrary integral types to match any integral type, use +matchanyintegral./lockmarks d |
| 30 | g/ To allow arbitrary integral types to match long unsigned, use +longintegral./lockmarks d |
Bram Moolenaar | 5fd0ca7 | 2009-05-13 16:56:33 +0000 | [diff] [blame] | 31 | g+ A variable is declared but never used. Use /.@unused@./ in front of declaration to suppress message.+lockmarks d |
Bram Moolenaar | 0ab2a88 | 2009-05-13 10:51:08 +0000 | [diff] [blame] | 32 | endfun |