Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid shadowed declaration #33

Open
jserv opened this issue May 24, 2024 · 0 comments
Open

Avoid shadowed declaration #33

jserv opened this issue May 24, 2024 · 0 comments

Comments

@jserv
Copy link
Contributor

jserv commented May 24, 2024

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant