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

VoodooPS2SynapticsTouchPad.cpp: Local variable '...' shadows outer variable #2028

Closed
nms42 opened this issue May 28, 2022 · 1 comment · Fixed by acidanthera/VoodooPS2#52
Closed

Comments

@nms42
Copy link

nms42 commented May 28, 2022

VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:967:16: style: Local variable 'buttonsraw' shadows outer variable [shadowVariable]
        UInt32 buttonsraw = buf[0] & 0x03; // mask for just R L
               ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:853:12: note: Shadowed declaration
    UInt32 buttonsraw = buf[0] & 0x03; // mask for just R L
           ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:967:16: note: Shadow variable
        UInt32 buttonsraw = buf[0] & 0x03; // mask for just R L
               ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:968:16: style: Local variable 'buttons' shadows outer variable [shadowVariable]
        UInt32 buttons = buttonsraw;
               ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:854:12: note: Shadowed declaration
    UInt32 buttons = buttonsraw;
           ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:968:16: note: Shadow variable
        UInt32 buttons = buttonsraw;
               ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:971:16: style: Local variable 'passbuttons' shadows outer variable [shadowVariable]
        UInt32 passbuttons = buf[1] & 0x7; // mask for just M R L
               ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.h:310:9: note: Shadowed declaration
 UInt32 passbuttons {0};
        ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:971:16: note: Shadow variable
        UInt32 passbuttons = buf[1] & 0x7; // mask for just M R L
               ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:1231:23: style: Local variable 'f2' shadows outer variable [shadowVariable]
                auto &f2 = fingerStates[2];
                      ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:1207:11: note: Shadowed declaration
    auto &f2 = fingerStates[2];
          ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:1231:23: note: Shadow variable
                auto &f2 = fingerStates[2];
                      ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:1633:30: style: Local variable 'i' shadows outer variable [shadowVariable]
                    for (int i = 0; i < _forceTouchCustomPower; ++i) {
                             ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:1572:13: note: Shadowed declaration
    for(int i = 0; i < SYNAPTICS_MAX_FINGERS; i++) {
            ^
VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp:1633:30: note: Shadow variable
                    for (int i = 0; i < _forceTouchCustomPower; ++i) {
                             ^
@Andrey1970AppleLife
Copy link
Contributor

invalid issue закрываются. Или убери метки invalid, или закрой.

@nms42 nms42 removed the invalid This doesn't seem right label May 30, 2022
PMheart added a commit to acidanthera/VoodooPS2 that referenced this issue Aug 1, 2022
vit9696 pushed a commit to acidanthera/VoodooPS2 that referenced this issue Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants