[arm-gnu] PC-Lint
Robin Aproskie
raproskie at tellumat.com
Fri Aug 31 10:05:52 UTC 2012
Hi
I am using Make File project to compile C code for My ARM7 ADuC7020 uC
Compiler: BIN=C:/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin/arm-none-eabi-
I am also using freeRTOS.
I am using PC-LINT V8.00 and would like to know if there are any option.lnt files anywhere that can help sort out problems with the stdint.h that sre ARM7 / Code Sourcery Lite specific
There are so many errors i can't even lint my code.
Thanks
Example errors:
1.
#define IRQEN (*(volatile unsigned long *) 0XFFFF0008)
saveIRQ = IRQEN;
C:\projects\workspace\PDLU_PA\changeMode.c:40:19: Note 923: cast from unsigned int to pointer [MISRA Rule 45]
2.
IRQCLR = 0xFFFF;
Multiple markers at this line
- Note 970: Use of modifier or type 'unsigned' outside of a typedef [MISRA Rule 13]
- Note 970: Use of modifier or type 'long' outside of a typedef [MISRA Rule 13]
- Note 923: cast from unsigned int to pointer [MISRA Rule 45]
Others
C:\projects\workspace\PDLU_PA\stdint.h:34:30: Warning 553: Undefined preprocessor variable 'LONG_MAX', assumed 0 [MISRA Rule 97]
C:\projects\workspace\PDLU_PA\stdint.h:36:47: Note 961: Violates MISRA Advisory Rule 12.1, dependence placed on C's operator precedence; operators: '==' and '&&'
C:\projects\workspace\PDLU_PA\stdint.h:36:63: Warning 553: Undefined preprocessor variable 'LONG_MAX', assumed 0 [MISRA Rule 97]
C:\projects\workspace\PDLU_PA\stdint.h:40:32: Warning 553: Undefined preprocessor variable 'SCHAR_MAX', assumed 0 [MISRA Rule 97]
Rob
**********************************************************************
Relevant company disclaimers are available at the following addresses:
Tellumat (Pty) Ltd e-mail: mailto:disclaimer at tellumat.com?Subject=Tellumat_Disclaimer
Web: http://www.tellumat.com/email.aspx
**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/arm-gnu/attachments/20120831/a837f6ba/attachment.html>
More information about the arm-gnu
mailing list