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

Unused variable warning in SAMD51 implementation #359

Open
IanBurwell opened this issue Jun 17, 2023 · 0 comments
Open

Unused variable warning in SAMD51 implementation #359

IanBurwell opened this issue Jun 17, 2023 · 0 comments

Comments

@IanBurwell
Copy link

When compiling for the PyPortal (SAMD51) GCC raises an unused variable warning (see below). This issue is not critical but would be easily fixed by removing the hanging bit variable here

GCC (9.3.1) warns the following:

.pio/libdeps/adafruit_pyportal_m4_titano/Adafruit NeoPixel/Adafruit_NeoPixel.cpp: In member function 'void Adafruit_NeoPixel::show()':
.pio/libdeps/adafruit_pyportal_m4_titano/Adafruit NeoPixel/Adafruit_NeoPixel.cpp:2505:44: warning: unused variable 'bit' [-Wunused-variable]
 2505 |   uint8_t *ptr, *end, p, bitMask, portNum, bit;
      |                                            ^~~
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