Skip to content

False positive running MISRA C 2012 rule 11.4 #158

@kylejacksonb

Description

@kylejacksonb

Potential false positive for MISRA C 2012 Rule 11.4 where there are is multiplication in the macro:

#define CORstartUpTimeTICK (24UL * 3600UL * 1000UL)
static int timeout = CORstartUpTimeTICK;   // MISRA12_11.4 - timeout - Cast between pointer to object type and a pointer to a different object type

False positive didn't reproduce by copying and pasting the code, but this project demonstrates the false positive:

qtest.zip

It might be that something in the settings (macro related?) is having an effect on the results.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions