-
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
Fix MISRA C 2012 rule 8.6 errors #862
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #862 +/- ##
=======================================
Coverage 93.77% 93.77%
=======================================
Files 6 6
Lines 3183 3183
Branches 885 885
=======================================
Hits 2985 2985
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. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Signed-off-by: Gaurav Aggarwal <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Fix MISRA C 2012 rule 8.6 errors
Description
MISRA C 2012 rule 8.6
MISRA violation
The following is an example of violation.
xQueueCRSendFromISR
is declared in the header file butconfigUSE_CO_ROUTINES
is not defined to 1. Therefore, no definition forxQueueCRSendFromISR
.Fix in this PR
For example, in the example above use
configUSE_CO_ROUTINES == 1
to ensure that the function is declared only when there is definition.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.