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 function and unused variable #2523

Open
tbnobody opened this issue Oct 14, 2024 · 1 comment
Open

Unused function and unused variable #2523

tbnobody opened this issue Oct 14, 2024 · 1 comment
Milestone

Comments

@tbnobody
Copy link

tbnobody commented Oct 14, 2024

When compiling with higher warning levels (-Wall -Wextra -Wunused) I receive the following warn message (or error message when compiling with -Werror

Compiling .pio\build\generic_esp32s3_usb\lib55e\U8g2\clib\u8g2_buffer.c.o
.pio/libdeps/generic_esp32s3_usb/U8g2/src/clib/mui.c:591:16: warning: 'mui_task_read_nth_selectable_field' defined but not used [-Wunused-function]
 static uint8_t mui_task_read_nth_selectable_field(mui_t *ui)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling .pio\build\generic_esp32s3_usb\lib55e\U8g2\clib\u8g2_button.c.o
Compiling .pio\build\generic_esp32s3_usb\lib55e\U8g2\clib\u8g2_circle.c.o
.pio/libdeps/generic_esp32s3_usb/U8g2/src/clib/mui_u8g2.c: In function 'mui_u8g2_s8_vmm_draw_wm_pf':
.pio/libdeps/generic_esp32s3_usb/U8g2/src/clib/mui_u8g2.c:1256:9: warning: unused variable 's' [-Wunused-variable]
   char *s = buf;
         ^

I know it's not really a issue but it prevents from compiling with -Werror

@olikraus olikraus added this to the 2.36 milestone Oct 14, 2024
@olikraus
Copy link
Owner

Thanks, assigned to next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants