Skip to content

False positive running MISRA C 2012 rule 14.2 #157

@kylejacksonb

Description

@kylejacksonb

Not sure what part of the loop is being raised as not well formed but these should be OK.

void foo()
{
    int i;
    for (i = 0; i < 4; i++) { } // For loop is not well-formed

    for (int j = 0; j < 4; j++) { } // For loop is not well-formed
}

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