Skip to content
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 for mismatched op-types on line 3937 on tasks.c - Issue 1066 #1067

Closed
wants to merge 4 commits into from

Conversation

markhermeling
Copy link

Fix for MISRA C 2012 Rule 10.4 violation: Mismatched operand types, see description in #1066

Description

No code changes, added a deviation in MISRA.md and comments into tasks.c

Test Steps

No code changes

Checklist:

  • I did not re-run tests as there are no code changes

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.

@markhermeling markhermeling requested a review from a team as a code owner May 21, 2024 16:54
Copy link

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

@@ -3935,6 +3935,9 @@ void vTaskSuspendAll( void )
* processed. */
xReturn = 0;
}
/* MISRA Ref 10.4.1 [Mismatched Operand Types] */
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#rule-104 */
/* codesonar[misra_c_2012_rule_10_4_violation] */
Copy link
Member

@aggarg aggarg May 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep it consistent with other suppression, can change it to the following:

coverity[misra_c_2012_rule_10_4_violation]

Edit - Ignore my comment. @kar-rahul-aws has raised a PR to address this issue.

@kar-rahul-aws
Copy link
Member

Hi @markhermeling
Thanks for raising the PR. Instead of suppressing the MISRA violation, we have updated the variable to BaseType_t in #1072 , which should now solve the issue.

@markhermeling
Copy link
Author

I validated that the warning is gone with these changes.

@kar-rahul-aws
Copy link
Member

Thanks for confirming @markhermeling . We will close this PR, since #1072 fixes the issue.

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.

4 participants