-
Notifications
You must be signed in to change notification settings - Fork 8k
usb: device_next: cdc_acm: Fix unused function warning #96404
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no "unused function warning when line coding is disabled".
Move cdc_acm_send_notification behind the #ifdef CONFIG_UART_LINE_CTRL to avoid unused function warning when config option CONFIG_UART_LINE_CTRL is deactivated. Signed-off-by: Tim Pambor <[email protected]>
f74f052
to
b6fe7aa
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind explaining a bit more? Is your comment about the commit message? I corrected the commit message to "when config option CONFIG_UART_LINE_CTRL is deactivated." |
@jfischer-no You can reproduce the warning compiling I tested this using the upcoming zephyr-sdk 0.18.0-alpha4 which includes clang 19.1.7 with |
Then it should be fixed in the upcoming toolchain. |
@jfischer-no I don't get what the issue is here. There is only a single user of |
@jfischer-no Could you please bring the debate about, whether or not an unused static inline merits a diagnostic upstream to the clang-compiler-team? In the mean-time i do not see why this tiny fix should be blocked, could you explain or accept this for the benefit of the project? |
|
Move
cdc_acm_send_notification
behind the#ifdef CONFIG_UART_LINE_CTRL
to avoid unused function warning when config optionCONFIG_UART_LINE_CTRL
is deactivated.