FreeRTOS / FreeRTOS-Kernel

FreeRTOS kernel files only, submoduled into https://github.com/FreeRTOS/FreeRTOS and various other repos.
https://www.FreeRTOS.org
MIT License
2.51k stars 1.05k forks source link

Add Noreturn attribute in template port for static analysis #1060

Closed kar-rahul-aws closed 1 month ago

kar-rahul-aws commented 1 month ago

Description

This PR adds the _Noreturn attribute in the coverity example configuration where a function is used that does not return.

Test Steps

NA

Checklist:

Related Issue

1057

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

markhermeling commented 1 month ago

Confirmed, this makes the warning go away. There is one warning that remains on main(), but as that is the application, I think you can argue that is a valid deviation.

kar-rahul-aws commented 1 month ago

Thank you for the confirmation. We will merge this PR.