Skip to content

Conversation

@DeHess
Copy link
Contributor

@DeHess DeHess commented Apr 26, 2024

Fix coding guideline MISRA C:2012 Rule 11.2 in includes:

Conversions shall not be performed between a pointer to an incomplete type and any other type.

This PR is part of the enhancement issue #48002 which port the coding guideline fixes done by BUGSENG on the https://github.com/zephyrproject-rtos/zephyr/tree/v2.7-auditable-branch back to main

The commit in this PR is a subset of the original auditable-branch commit:
9043b65

avoid convert pointers to incomplete type using the pointer to first item

Signed-off-by: Hess Nathan <nhess@baumer.com>
@zephyrbot zephyrbot added the area: Userspace Userspace label Apr 26, 2024
@zephyrbot zephyrbot requested review from ceolin and dcpleung April 26, 2024 08:22
@DeHess DeHess changed the title coding guidelines: comply with MISRA C:2012 Rule 11.2 includes: avoid to convert pointers to incomplete type using the pointer to first item (MISRA Rule 11.2) Apr 30, 2024
@DeHess DeHess changed the title includes: avoid to convert pointers to incomplete type using the pointer to first item (MISRA Rule 11.2) includes: avoid to convert pointers to incomplete type using the pointer to first item Apr 30, 2024
@DeHess DeHess changed the title includes: avoid to convert pointers to incomplete type using the pointer to first item Userspace: avoid to convert pointers to incomplete type using the pointer to first item May 13, 2024
@nashif nashif added the area: Coding Guidelines Coding guidelines and style label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Coding Guidelines Coding guidelines and style area: Userspace Userspace

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants