-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppress MISRA C:2012 rule 11.5 deviations #878
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #878 +/- ##
=======================================
Coverage 93.77% 93.77%
=======================================
Files 6 6
Lines 3179 3179
Branches 885 885
=======================================
Hits 2981 2981
Misses 91 91
Partials 107 107
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Gaurav Aggarwal <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Suppress MISRA C:2012 rule 11.5 deviations
Description
MISRA C:2012 Rule 11.5
MISRA deviations
The rule requires a pointer to void should not be converted into a pointer to object cause this may result in a pointer that is not correctly aligned, resulting in undefined behavior. Casting void * to a pointer to other type is used in the following scenarios:
Suppress in this PR
Test Steps
N/A
Checklist:
I have tested my changes. No regression in existing tests.I have modified and/or added unit-tests to cover the code changes in this Pull Request.Related Issue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.