Skip to content

Avoid shadowed declaration #33

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]

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions