From cc485f2e2cd2258516e0dc2cdd8d12a512b6374e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 3 Oct 2019 16:34:14 -0600 Subject: [PATCH] arch/arm/src/stm32/stm32_usbdev.c: Fix some new warnings reported by gcc 8.3.1 in build tests. --- arch/arm/src/stm32/stm32_usbdev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/src/stm32/stm32_usbdev.c b/arch/arm/src/stm32/stm32_usbdev.c index 15e856fb18a..6968b6a57e5 100644 --- a/arch/arm/src/stm32/stm32_usbdev.c +++ b/arch/arm/src/stm32/stm32_usbdev.c @@ -1747,6 +1747,11 @@ static void stm32_ep0setup(struct stm32_usbdev_s *priv) ep0->stalled = 0; ep0->txbusy = 0; + value.w = 0; + index.w = 0; + len.w = 0; + response.w = 0; + /* Check to see if called from the DATA phase of a SETUP Transfer */ if (priv->ep0state != EP0STATE_SETUP_READY)