MISRA Discussion Forums
Example for rule 11.1 - Printable Version

+- MISRA Discussion Forums (https://forum.misra.org.uk)
+-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4)
+--- Forum: MISRA-C:2004 Exemplar Suite (https://forum.misra.org.uk/forumdisplay.php?fid=116)
+--- Thread: Example for rule 11.1 (/showthread.php?tid=460)



Example for rule 11.1 - stefansta - 20-02-2008

Hello,
I have a question according to the example for the rule 11.1 (mc2_1101.c). My misra checker detects that the line \"pif32 int32p_fun = &get_int32\" violates rule 11.1, but I think this line is correct.
Am I right?


Re: Example for rule 11.1 - Graham Andrews - 17-04-2008

The line is correct and the misra checker is wrong to report a violation of this rule.


Re: Example for rule 11.1 - misra-c - 21-05-2008

Line 31:
Code:
pif32 int32p_fun = &get_int32;
This line is correct and contains no violation.