Skip to content

Avoid shadowed declaration #33

Open
@jserv

Description

@jserv

Reported by Cppcheck:

Checking src/virtio-blk.c ...
src/virtio-blk.c:115:21: style: Local variable 'r' shadows outer variable [shadowVariable]
            ssize_t r;
                    ^
src/virtio-blk.c:105:13: note: Shadowed declaration
        int r = 0;
            ^
src/virtio-blk.c:115:21: note: Shadow variable
            ssize_t r;
                    ^

Command:

$ cppcheck --enable=all src/*.[ch] src/arch/x86/*.[ch]

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