-
Notifications
You must be signed in to change notification settings - Fork 15
error: typedef 'funcPtr' locally defined but not used #1
Copy link
Copy link
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels