Rev 1498 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1498 | serge | 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 | -i"..\..\source\include" |
||
7 | -i"..\..\source\include\platform" |
||
8 | |||
9 | /* Global options */ |
||
10 | |||
11 | -A // ANSI C only |
||
12 | +fie // Enum is integer |
||
13 | -dACPI_USE_DO_WHILE_0 |
||
14 | -dACPI_DEBUG_OUTPUT |
||
15 | //-dACPI_APPLICATION |
||
16 | -dACPI_DEBUGGER |
||
17 | -dACPI_DISASSEMBLER |
||
18 | -dACPI_ENABLE_OBJECT_CACHE |
||
19 | -dACPI_DBG_TRACK_ALLOCATIONS |
||
20 | -dACPI_USE_LOCAL_CACHE |
||
21 | -dACPI_CACHE_T=ACPI_MEMORY_LIST |
||
22 | -d_LINT=1 |
||
23 | |||
24 | -printf(4, AcpiUtDebugPrint, AcpiUtDebugPrintRaw) |
||
25 | -printf(1, AcpiOsPrintf, AcpiOsVprintf) |
||
26 | |||
27 | /* Macro exceptions */ |
||
28 | |||
29 | -emacro( (413), ACPI_OFFSET ) // use of NULL pointer creates a stir |
||
30 | -emacro( (413), ACPI_TO_INTEGER ) // use of NULL pointer creates a stir |
||
31 | -emacro( (413), ACPI_TO_POINTER ) // use of NULL pointer creates a stir |
||
32 | -emacro( (413), ACPI_ADD_PTR ) // use of NULL pointer creates a stir |
||
33 | -emacro( (413), ACPI_PTR_DIFF ) // use of NULL pointer creates a stir |
||
34 | -emacro( (413), ACPI_FADT_OFFSET ) // use of NULL pointer creates a stir |
||
35 | -emacro( (413), ASL_RESDESC_OFFSET ) // use of NULL pointer creates a stir |
||
36 | -emacro( (662), ACPI_ADD_PTR ) // allow pointer overrun for dynamic structs |
||
37 | -emacro( (797), ACPI_ADD_PTR ) // allow pointer overrun for dynamic structs |
||
38 | |||
39 | -emacro( 826, ACPI_NEXT_RESOURCE) // Pointer cast |
||
40 | -emacro( 826, ACPI_MOVE_UNALIGNED16_TO_16) // Pointer cast |
||
41 | -emacro( 826, ACPI_MOVE_UNALIGNED16_TO_32) // Pointer cast |
||
42 | -emacro( 826, ACPI_MOVE_UNALIGNED32_TO_32) // Pointer cast |
||
43 | -emacro( 826, ACPI_MOVE_32_TO_32) // Pointer cast |
||
44 | -emacro( 950, ACPI_INTERNAL_VAR_XFACE) // Uses non-ANSI |
||
45 | -emacro( 950, ACPI_SYSTEM_XFACE) // Uses non-ANSI |
||
46 | -emacro( 826, ACPI_CAST_PTR) // Pointer cast |
||
47 | -emacro( 826, ACPI_ADD_PTR) // Pointer cast |
||
48 | -emacro( 826, ACPI_LODWORD) // Pointer cast |
||
49 | -emacro( 826, ACPI_HIDWORD) // Pointer cast |
||
50 | |||
51 | /* Symbol exceptions */ |
||
52 | |||
53 | -esym( 528, _AcpiModuleName) // Symbol not always used, but always present |
||
54 | -esym( 550, CurrentSp) // Used to track stack use |
||
55 | -esym( 789, CurrentSp) // Used to track stack use |
||
56 | -esym( 534, AcpiDmDumpName) // Return value not always used |
||
57 | -esym( 534, AcpiDmCommaIfListMember) // Return value not always used |
||
58 | |||
59 | // Suppress warning about redefinition during lint of multiple modules |
||
60 | -esym(767,_COMPONENT) |
||
61 | |||
62 | |||
63 | /* Symbol exceptions for generation of iASL compiler */ |
||
64 | |||
65 | -esym( 534, TrWalkParseTree) // Return value not always used |
||
66 | -esym( 534, AslCompilerparse) // Return value not always used |
||
67 | -esym( 534, OpcSetOptimalIntegerSize) // Return value not always used |
||
68 | -esym( 534, AslCompilererror) // Return value not always used |
||
69 | |||
70 | /* Global exceptions */ |
||
71 | |||
72 | -e716 // Allow while(1) |
||
73 | -e717 // Allow do..while(0) |
||
74 | -e801 // Allow judicious use of goto without incurring complaint |
||
75 | -e818 // Don't make suggestions about const to avoid "const" pollution |
||
76 | -e715 // Ignore non-referenced formal parameters |
||
77 | -e750 // Ignore non-referenced local macros (_MODULE_NAME, _COMPONENT, etc.) |
||
78 | -e834 // - followed by + is "confusing" NOT. |
||
79 | -e820 // Allow Boolean test of a parenthesized assignment |
||
80 | -e778 // Allow constant expressions to evaluate to zero |
||
81 | -e662 // Allow "pointer overrun" for dynamic structures |
||
2216 | Serge | 82 | -e831 |
83 | -e784 // Allow "Nul character truncated from string" for lookup tables |
||
84 | -e661 // Allow access beyond "end of pointer" for ACPI tables declared with x[1] fields |
||
85 | -e796 // Allow access beyond "end of pointer" for namestrings |