1 // Please note -- this is a representative set of error suppression
2 // options. Please adjust to suit your own policies
3 // See manual (chapter LIVING WITH LINT)
4 // for further details.
6 //===========================================================================
10 -wlib(0) // Inhibit all library messages except syntactic
13 +libclass(angle,ansi) // Treat all headers specified with angle brackets
14 // and standard ANSI headers as library files
16 +libh(nucleus.h,*x_os.h) // Ignore nucleus.h and x_os.h
18 //===========================================================================
22 -epn // Inhibit messages that pointer types differ
25 +fll // Enable type 'long long'
27 +fdi // Search #include files in the directory of
28 // source file, rather than in current directory.
30 +fpn // All pointer parameters are assumed to be
33 +fem // Early modifiers (__packed, etc.)
35 -d__arm // Define __arm
37 -d__FUNCTION__="function" // Non-standard preprocessor macro
39 //===========================================================================
40 // General message inhibitions
43 -e537 // Repeated include file
44 -e730 // Boolean argument to function
45 -e788 // enum constant not used within defaulted switch
47 //===========================================================================
48 // Specific function inhibitions
51 // Ignoring return value of function
52 -esym(534, Printf, SPrintf)
53 -esym(534, x_memcpy, x_memcmp, x_memmove, x_memset)
55 // Function takes printf-like format
60 +dASSERT=__assert // lock in the define of ASSERT to be the builtin function
61 -esym(1055,__assert) // the built-in is undeclared
62 -esym(526,__assert) // and not defined either.
63 -esym(516,__assert) // arguments may vary.
64 -esym(534,__assert) // the return value is ignored
65 -esym(628,__assert) // and no argument information given
66 -esym(746,__assert) // and no formal prototype provided
67 -esym(718,__assert) // Symbol undeclared
68 // otherwise __assert() is an 'ideal' assert function.
70 //===========================================================================
71 // Special keyword ignorance
73 // Add reserved word: __irq
77 // Ignore __global_reg(x), used in nucleus.h
78 -rw_asgn(__global_reg, _to_eol)
80 // Ignore __align(x), used in global variable declaration alignment
81 -rw_asgn(__align, _to_brackets)
83 // Ignore embedded inline assembly functions
84 -rw_asgn(__asm, _to_brackets)