Skip to content

Compiler warns/fails with "will be initialized after [-Werror=reorder]" warning #37

@smuellener

Description

@smuellener

There are multiple cases where members in the initializer list of classes have the wrong order. (see https://stackoverflow.com/questions/1564937/gcc-warning-will-be-initialized-after)

E.g.

PangolinMQTT\src\Packet.h:37:34: error: 'Packet::_controlcode' will be initialized after [-Werror=reorder]
PangolinMQTT\src\Packet.h:36:41: error: 'bool Packet::_hasId' [-Werror=reorder]
PangolinMQTT\src\Packet.h:51:9: error: when initialized here [-Werror=reorder]

Or also in AardvarkTCP\src\mbx.h

It would be great if you could ensure that the order is correct. I could also create pull requests for this if preferred..

Thank you, very excited to try this library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions