Home | History | Annotate | Line # | Download | only in lint
options.lnt revision 1.1
      1  1.1  jruoho // Please note -- this is a representative set of error suppression
      2  1.1  jruoho //                options.  Please adjust to suit your own policies
      3  1.1  jruoho //                See  manual (chapter LIVING WITH LINT)
      4  1.1  jruoho //                for further details.
      5  1.1  jruoho 
      6  1.1  jruoho -i"..\..\source\include"
      7  1.1  jruoho -i"..\..\source\include\platform"
      8  1.1  jruoho 
      9  1.1  jruoho /* Global options */
     10  1.1  jruoho 
     11  1.1  jruoho -A              // ANSI C only
     12  1.1  jruoho +fie            // Enum is integer
     13  1.1  jruoho -dACPI_USE_DO_WHILE_0
     14  1.1  jruoho -dACPI_DEBUG_OUTPUT
     15  1.1  jruoho //-dACPI_APPLICATION
     16  1.1  jruoho -dACPI_DEBUGGER
     17  1.1  jruoho -dACPI_DISASSEMBLER
     18  1.1  jruoho -dACPI_ENABLE_OBJECT_CACHE
     19  1.1  jruoho -dACPI_DBG_TRACK_ALLOCATIONS
     20  1.1  jruoho -dACPI_USE_LOCAL_CACHE
     21  1.1  jruoho -dACPI_CACHE_T=ACPI_MEMORY_LIST
     22  1.1  jruoho -d_LINT=1
     23  1.1  jruoho 
     24  1.1  jruoho -printf(4, AcpiUtDebugPrint, AcpiUtDebugPrintRaw)
     25  1.1  jruoho -printf(1, AcpiOsPrintf, AcpiOsVprintf)
     26  1.1  jruoho 
     27  1.1  jruoho /* Macro exceptions */
     28  1.1  jruoho 
     29  1.1  jruoho -emacro( (413), ACPI_OFFSET )               // use of NULL pointer creates a stir
     30  1.1  jruoho -emacro( (413), ACPI_TO_INTEGER )           // use of NULL pointer creates a stir
     31  1.1  jruoho -emacro( (413), ACPI_TO_POINTER )           // use of NULL pointer creates a stir
     32  1.1  jruoho -emacro( (413), ACPI_ADD_PTR )              // use of NULL pointer creates a stir
     33  1.1  jruoho -emacro( (413), ACPI_PTR_DIFF )             // use of NULL pointer creates a stir
     34  1.1  jruoho -emacro( (413), ACPI_FADT_OFFSET )          // use of NULL pointer creates a stir
     35  1.1  jruoho -emacro( (413), ASL_RESDESC_OFFSET )        // use of NULL pointer creates a stir
     36  1.1  jruoho -emacro( (662), ACPI_ADD_PTR )              // allow pointer overrun for dynamic structs
     37  1.1  jruoho -emacro( (797), ACPI_ADD_PTR )              // allow pointer overrun for dynamic structs
     38  1.1  jruoho 
     39  1.1  jruoho -emacro( 826, ACPI_NEXT_RESOURCE)           // Pointer cast
     40  1.1  jruoho -emacro( 826, ACPI_MOVE_UNALIGNED16_TO_16)  // Pointer cast
     41  1.1  jruoho -emacro( 826, ACPI_MOVE_UNALIGNED16_TO_32)  // Pointer cast
     42  1.1  jruoho -emacro( 826, ACPI_MOVE_UNALIGNED32_TO_32)  // Pointer cast
     43  1.1  jruoho -emacro( 826, ACPI_MOVE_32_TO_32)           // Pointer cast
     44  1.1  jruoho -emacro( 950, ACPI_INTERNAL_VAR_XFACE)      // Uses non-ANSI
     45  1.1  jruoho -emacro( 950, ACPI_SYSTEM_XFACE)            // Uses non-ANSI
     46  1.1  jruoho -emacro( 826, ACPI_CAST_PTR)                // Pointer cast
     47  1.1  jruoho -emacro( 826, ACPI_ADD_PTR)                 // Pointer cast
     48  1.1  jruoho -emacro( 826, ACPI_LODWORD)					// Pointer cast
     49  1.1  jruoho -emacro( 826, ACPI_HIDWORD)					// Pointer cast
     50  1.1  jruoho 
     51  1.1  jruoho /* Symbol exceptions */
     52  1.1  jruoho 
     53  1.1  jruoho -esym( 528, _AcpiModuleName)                // Symbol not always used, but always present
     54  1.1  jruoho -esym( 550, CurrentSp)                      // Used to track stack use
     55  1.1  jruoho -esym( 789, CurrentSp)                      // Used to track stack use
     56  1.1  jruoho -esym( 534, AcpiDmDumpName)                 // Return value not always used
     57  1.1  jruoho -esym( 534, AcpiDmCommaIfListMember)        // Return value not always used
     58  1.1  jruoho 
     59  1.1  jruoho // Suppress warning about redefinition during lint of multiple modules
     60  1.1  jruoho -esym(767,_COMPONENT)
     61  1.1  jruoho 
     62  1.1  jruoho 
     63  1.1  jruoho /* Symbol exceptions for generation of iASL compiler */
     64  1.1  jruoho 
     65  1.1  jruoho -esym( 534, TrWalkParseTree)                // Return value not always used
     66  1.1  jruoho -esym( 534, AslCompilerparse)               // Return value not always used
     67  1.1  jruoho -esym( 534, OpcSetOptimalIntegerSize)       // Return value not always used
     68  1.1  jruoho -esym( 534, AslCompilererror)               // Return value not always used
     69  1.1  jruoho 
     70  1.1  jruoho /* Global exceptions */
     71  1.1  jruoho 
     72  1.1  jruoho -e716   // Allow while(1)
     73  1.1  jruoho -e717   // Allow do..while(0)
     74  1.1  jruoho -e801   // Allow judicious use of goto without incurring complaint
     75  1.1  jruoho -e818   // Don't make suggestions about const to avoid "const" pollution
     76  1.1  jruoho -e715   // Ignore non-referenced formal parameters
     77  1.1  jruoho -e750   // Ignore non-referenced local macros (_MODULE_NAME, _COMPONENT, etc.)
     78  1.1  jruoho -e834   // - followed by + is "confusing" NOT.
     79  1.1  jruoho -e820   // Allow Boolean test of a parenthesized assignment
     80  1.1  jruoho -e778   // Allow constant expressions to evaluate to zero
     81  1.1  jruoho -e662   // Allow "pointer overrun" for dynamic structures
     82  1.1  jruoho -e831