25-11-2009, 12:40 PM
Hello.
My PC-LINT tool gives me an error of violating of rules 11.1, 11.2, 11.3, 11.4 (cast from unsigned char to pointer ) on the line 2:
line 1: unsigned char* ptr;
line 2: ptr=(unsigned char*)0x12;
The idea behind is that I want to initialize a pointer with a non-zero address in a MISRA-compliant style.
Thank you for the answer.
Best regards.
My PC-LINT tool gives me an error of violating of rules 11.1, 11.2, 11.3, 11.4 (cast from unsigned char to pointer ) on the line 2:
line 1: unsigned char* ptr;
line 2: ptr=(unsigned char*)0x12;
The idea behind is that I want to initialize a pointer with a non-zero address in a MISRA-compliant style.
Thank you for the answer.
Best regards.