Rule 11.6. A cast between pointer to void and an arithmetic type. Value of the rule.

Moderators: misra-c, david ward

l.inc
Posts: 3
Joined: Tue Aug 14, 2018 3:01 pm
Company: OpenSynergy

Rule 11.6. A cast between pointer to void and an arithmetic type. Value of the rule.

Postby l.inc » Thu Sep 06, 2018 1:18 pm


misra-c
Posts: 547
Joined: Thu Jan 05, 2006 1:11 pm

Re: Rule 11.6. A cast between pointer to void and an arithmetic type. Value of the rule.

Postby misra-c » Tue Oct 16, 2018 11:10 am

1. The working-group agrees that the first paragraph of the rationale needs amending. It should refer to implementation behaviour (C99 J.3.7(1)), not alignment issues or undefined behaviour.

2. The working-group agrees the rationale does not apply to a conversion to intptr_t/uintptr_t. The group will review casts to intptr_t/uintptr_t in a later release. It is permissible to convert between void* and intptr_t/uintptr_t if you write a deviation to the rule.

3. Thank you for your comment.

The Advisory/Required categories for the rule 11.X rules are planned to be reviewed as part of future work on the MISRA C guidelines.
---
Posted by and on behalf of
the MISRA C Working Group

l.inc
Posts: 3
Joined: Tue Aug 14, 2018 3:01 pm
Company: OpenSynergy

Re: Rule 11.6. A cast between pointer to void and an arithmetic type. Value of the rule.

Postby l.inc » Wed Oct 17, 2018 12:05 pm

Thank you. Your official answer will help justifying the deviation.


Return to “8.11 Pointer type conversions”

Who is online

Users browsing this forum: No registered users and 1 guest