import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / misc / mediatek / connectivity / combo / drv_wlan / mt6630 / wlan / lint / options.lnt
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.
5
6 //===========================================================================
7 // Library control
8 //
9
10 -wlib(0) // Inhibit all library messages except syntactic
11 // errors.
12
13 +libclass(angle,ansi) // Treat all headers specified with angle brackets
14 // and standard ANSI headers as library files
15
16 +libh(nucleus.h,*x_os.h) // Ignore nucleus.h and x_os.h
17
18 //===========================================================================
19 // General attributes
20 //
21
22 -epn // Inhibit messages that pointer types differ
23 // nominally.
24
25 +fll // Enable type 'long long'
26
27 +fdi // Search #include files in the directory of
28 // source file, rather than in current directory.
29
30 +fpn // All pointer parameters are assumed to be
31 // possibly NULL.
32
33 +fem // Early modifiers (__packed, etc.)
34
35 -d__arm // Define __arm
36
37 -d__FUNCTION__="function" // Non-standard preprocessor macro
38
39 //===========================================================================
40 // General message inhibitions
41 //
42
43 -e537 // Repeated include file
44 -e730 // Boolean argument to function
45 -e788 // enum constant not used within defaulted switch
46
47 //===========================================================================
48 // Specific function inhibitions
49 //
50
51 // Ignoring return value of function
52 -esym(534, Printf, SPrintf)
53 -esym(534, x_memcpy, x_memcmp, x_memmove, x_memset)
54
55 // Function takes printf-like format
56 -printf(1, Printf)
57 -printf(2, SPrintf)
58
59 // ASSERT specific
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.
69
70 //===========================================================================
71 // Special keyword ignorance
72
73 // Add reserved word: __irq
74 +rw(__irq, __packed)
75 -rw(__align)
76
77 // Ignore __global_reg(x), used in nucleus.h
78 -rw_asgn(__global_reg, _to_eol)
79
80 // Ignore __align(x), used in global variable declaration alignment
81 -rw_asgn(__align, _to_brackets)
82
83 // Ignore embedded inline assembly functions
84 -rw_asgn(__asm, _to_brackets)