You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stm32f4/libmaple/libmaple/usb/usb_hardware.c:87:20: error: typedef 'funcPtr' locally defined but not used [
-Werror=unused-local-typedefs]
typedef void (funcPtr)(void);
^
cc1.exe: all warnings being treated as errors
make: ** [build/./libmaple/usb/usb_hardware.o] Error 1
my temporary fix for the above was to edit the line usb_hardware.c and comment the line 87, i tried the -Wno-unused-function flag with cxx flags but it didn't fix the problem.
I don't understand why is the above typedef void (*funcPtr)(void); defined in systemHardReset(void) method in usb_hardware.c file; isn't it supposed to be in .h file
The text was updated successfully, but these errors were encountered:
stm32f4/libmaple/libmaple/usb/usb_hardware.c:87:20: error: typedef 'funcPtr' locally defined but not used [
-Werror=unused-local-typedefs]
typedef void (funcPtr)(void);
^
cc1.exe: all warnings being treated as errors
make: ** [build/./libmaple/usb/usb_hardware.o] Error 1
my temporary fix for the above was to edit the line usb_hardware.c and comment the line 87, i tried the -Wno-unused-function flag with cxx flags but it didn't fix the problem.
I don't understand why is the above typedef void (*funcPtr)(void); defined in systemHardReset(void) method in usb_hardware.c file; isn't it supposed to be in .h file
The text was updated successfully, but these errors were encountered: