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

fix compiler warnings - USBD VCP strings resulting in 'condition has identical branches' #968

Conversation

nerdCopter
Copy link
Member

@nerdCopter nerdCopter commented Feb 23, 2024

fixes:

./src/main/vcp_hal/usbd_desc.c: In function 'USBD_VCP_ConfigStrDescriptor':
./src/main/vcp_hal/usbd_desc.c:262:8: warning: this condition has identical branches [-Wduplicated-branches]
  262 |     if (speed == USBD_SPEED_HIGH) {
./src/main/vcp_hal/usbd_desc.c: In function 'USBD_VCP_InterfaceStrDescriptor':
./src/main/vcp_hal/usbd_desc.c:277:8: warning: this condition has identical branches [-Wduplicated-branches]
  277 |     if (speed == USBD_SPEED_HIGH) {

@nerdCopter nerdCopter merged commit e430b65 into emuflight:master Feb 27, 2024
6 checks passed
@nerdCopter nerdCopter deleted the 20240223_fix_compile_warnings_USB_VCP_strings branch February 27, 2024 17:24
@nerdCopter nerdCopter restored the 20240223_fix_compile_warnings_USB_VCP_strings branch June 26, 2024 14:35
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

Successfully merging this pull request may close these issues.

1 participant