28-09-2017, 09:18 AM
Code:
typedef struct {
uint16 myVariable01;
uint8 myArray [16];
uint8 myVariable02;
} myType;
A violation would look like this:
Code:
uint8* ptr = 0;// use NULL for pointer initialization
<t></t>
Welcome to the new MISRA discussion forum, if you were previously a member of our forums you may need to reset your password.
Rule 11.9: Does this struct initialization violate rule 11.9?
|
28-09-2017, 09:18 AM
Code: typedef struct { A violation would look like this: Code: uint8* ptr = 0;// use NULL for pointer initialization
<t></t>
|
« Next Oldest | Next Newest »
|
Messages In This Thread |