Skip to content

[readability/braces] False positive for ; after {} in struct reference #201

Description

@alejandro-colomar
    struct mount_attr *attr = &(struct mount_attr){};

I'm not sure if this is valid C++. It is valid C, for sure (weird, but valid :)).

tmp/src/man2/mount_setattr.2.d/mount_setattr.c:61:  You don't need a ; after a }  [readability/braces] [4]

AFAIK, the report is invalid, since the ; is necessary.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions