michallenc opened a new pull request, #10548:
URL: https://github.com/apache/nuttx/pull/10548
Fix compile warning
chip/sam_usbdevhs.c:2474:11: warning: 'response' may be used uninitialized
[-Wmaybe-uninitialized]
2474 | sam_ctrlep_write(ep0, response.b, nbytes);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
chip/sam_usbdevhs.c:1845:13: note: by argument 2 of type 'const uint8_t *'
{aka 'const unsigned char *'} to 'sam_ctrlep_write' declared here
1845 | static void sam_ctrlep_write(struct sam_ep_s *privep, const uint8_t
*buffer,
| ^~~~~~~~~~~~~~~~
chip/sam_usbdevhs.c:2001:24: note: 'response' declared here
2001 | union wb_u response;
| ^~~~~~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]