Skip to content

Fix MISRA deviations #190

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

Merged
merged 5 commits into from
Apr 22, 2025
Merged

Conversation

chinglee-iot
Copy link
Member

Description

  • Suppress MISRA dir 4.6 to return int to comply with search function prototype
  • Fix MISRA rule 15.4 to use single break in loop
  • Fix MISRA rule 17.12 to use & to obtain the functoin address
  • Update coverity README.md to add compile option

Test Steps

Follow the README.md in tools/coverity should report no deviations now.

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.

* Suppress MISRA dir 4.6 to return int to comply with search function
  prototype
* Fix MISRA rule 15.4 to use single break in loop
* Fix MISRA rule 17.12 to use & to obtain the functoin address
* Update coverity README.md to add compile option
@chinglee-iot chinglee-iot requested a review from ActoryOu April 22, 2025 05:58
@chinglee-iot chinglee-iot merged commit 4bf1ac5 into FreeRTOS:main Apr 22, 2025
10 checks passed
@chinglee-iot chinglee-iot deleted the fix-misra-deviation branch April 22, 2025 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants