-
Notifications
You must be signed in to change notification settings - Fork 65
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
MISRA C Compliance #152
Comments
Hi @AndreyVV-100 Regards, |
We address this issue in PR #157. I use the coverity 2023.06.1 to check the MISRA deviations and this issue is not reported. It would be great if you can help to verify this patch in your environment. Thank you for reporting this issue. |
@chinglee-iot We checked this PR in our environment and there is no warning now. |
Hi! Сontinuing the issue #147 , our tool gave some new reports. Are this lines violation of rules?
coreJSON/source/core_json.c
Line 691 in 8c7ba86
According to MISRA C 2012 standard paragraph 8.10 "The essential type model", in this example
value
is of Essentially Signed type category, and the constant0U
is of Essentially Unsigned type category. Assigning the value to an object with different essential type category is prohibited by the rule 10.3.coreJSON/source/core_json.c
Line 1039 in 8c7ba86
In standard header file
assert.h
macroassert
is defined as follows:So in this example macro parameter
isOpenBracket_
(which is also macro) is itself subject for further macro replacement(#expr)
, supplied asexpr
parameter.The text was updated successfully, but these errors were encountered: