Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: typedef 'funcPtr' locally defined but not used #1

Open
anees042 opened this issue May 16, 2015 · 0 comments
Open

error: typedef 'funcPtr' locally defined but not used #1

anees042 opened this issue May 16, 2015 · 0 comments

Comments

@anees042
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant