|
|||||||||||
Technical Support On-Line Manuals µVision User's Guide About µVision User Interface Creating Applications Utilities Configuration Wizard Searching for Text Find Replace Find in Files Incremental Find Source Browser Run External Programs Using the SVCS Menu Key Sequence for Tool Parameters PC-lint and MISRA Validation Installation of PC-lint Configure PC-lint Using PC-lint Debugging Debug Commands Debug Functions Simulation Flash Programming Dialogs Example Programs Command Line Appendix |
Using PC-lintPC-lint has many options that allow you to configure the diagnostics output, for example
Disable message for a statement To disable a message for a
statement, enter the following PC-Lint command in a comment before
the statement: //lint --e(715) // disable 'argument' not referenced once void phaseA (void *argument) { for (;;) { osThreadFlagsWait(0x0001, osFlagsWaitAny ,osWaitForever); g_phases.phaseA = 1; signal_func(tid_phaseB); g_phases.phaseA = 0; } }
Disable message for a module To disable a message for a
module enter the following PC-Lint command in a comment at the
beginning of a module: //lint e715 // disable "'argument' not referenced " for entire module #include <stdio.h> . . . //lint +e715 // enable "'argument' not referenced" again for module void phaseA (void *argument) { for (;;) { osThreadFlagsWait(0x0001, osFlagsWaitAny ,osWaitForever); g_phases.phaseA = 1; signal_func(tid_phaseB); g_phases.phaseA = 0; } } Disable message for a complete project To disable a message for a complete project, enter the PC-Lint command in the dialog Tools – Set-up PC-Lint under Additional Lint Commands. Note
| ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.