I am trying to understand one line of code having two __pragma operatores inside one define macro: I know that pragma can be used in macros as of t ...
I am trying to understand one line of code having two __pragma operatores inside one define macro: I know that pragma can be used in macros as of t ...
(char *) NULL or char * msg = NULL triggers MISRA 10.5: The value of an expression should not be cast to an inappropriate essential type. So what is ...
As I am working on a topic related to MISRA, I had some doubts about this line of code: as rule 11.5 [A] "A conversion should not be performed from ...
I'm trying to utilize misra C:2012 checking in from cppcheck (v2.9). However, when executing on a particular file I get the following violations: ...
I'm not sure, why Misra-C report this error in the below snap of the code. Note - element is pointer to a struct. If someone can help me to figure ...
i got a MISRA C violation for the code bellow ` what are the recommendations? Best reds ...
I am trying to fix the MISRA error for a small function which will compare two unsigned integer values. But i think, i have done the typecasting prope ...
This rule states that a project should not contain unused tag declarations. How does this makes compliant? What could be the possible issues if the ...
QA-C Rule 4303 states that An expression of ’essentially Boolean’ type is being cast to signed type. I want to understand what could be actual problem ...
MISRA has a problem with the following code: I am getting a violation for rule 18.3: The relational operators >, >=, < and <= shall no ...
In the MISRA C document there are explanations about "Source References" and there is a table whose rows are: Unspecified, Undefined, Implementation-d ...
I need to solve misra related issues and cert related issues If I remove U i get misra etype assign error stating that usgined int is compared with ...
I just got started into writing fail-safe, high integrity C code and I'd like to know if programs can "fix themselves" if a variable gets corrupted fo ...
I need to check if a parameters fits in a well known list. To do so I wrote this function For the sake of clarity, these macros are target implemen ...
I am facing this problem as when I am trying to build the code using ANSI C, as I was practicing writing in it and dealing with its rules, it tells me ...
Rule 22 in JSF AV C++ Coding Standards says: AV Rule 22 (MISRA Rule 124, Revised) The input/output library <stdio.h> shall not be used. ...
I'm trying to fix the compliance of my code to misra C. During the static analysis, I had this violation: Rule 12.1: Extra parentheses recommended ...
tl;dr; as far as I understand, this rule advocates to not override an already defined method (if not declared pure). So if I am not allowed to overrid ...
MISRA rule 17.8 prohibits modification of function parameters in the function body. The rationale is that programmers new to C may misinterpret the se ...
I am getting below MISRA QAC Warning. This assignment is redundant. The value of this object is never used before being modified. MISRA_2012, QAC, Me ...