PaulStoffregen / USBHost_t36

USB Host Library for Teensy 3.6 and 4.0
170 stars 87 forks source link

fix unitialized memory to allow more strict build flags #77

Open zackees opened 2 years ago

zackees commented 2 years ago

C:\Users\niteris.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36\hid.cpp: In member function 'void USBHIDParser::parse()': C:\Users\niteris.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36\hid.cpp:361:20: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized] usage_page = val; ^ C:\Users\niteris.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36\hid.cpp: In member function 'void USBHIDParser::parse(uint16_t, const uint8_t*, uint32_t)': C:\Users\niteris.platformio\packages\framework-arduinoteensy\libraries\USBHost_t36\hid.cpp:524:37: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized] logical_max = signedval(val, tag);