Skip to content

Fix misleading-indentation warning in SerializationTraversal #4

Description

@LK-Simon

Summary

ESPressio_SerializationTraversal.hpp currently contains a statement sequence that triggers -Wmisleading-indentation under GCC when downstream consumers compile with warnings-as-errors:

if(!FromNode(node,value))fail(); return result;

This was exposed by ESPressio Serial's host test suite while validating against released Serializable 0.10.1.

Impact

Downstream projects using -Werror fail to compile even though the logic itself is unchanged.

Required fix

Reformat the branch so control flow is unambiguous, e.g.:

if (!FromNode(node, value)) {
    fail();
}
return result;

No API or behavioural change is intended.

Release

Target patch release: 0.10.2.

Metadata

Metadata

Assignees

No one assigned

    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