Skip to content

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

@anees042

Description

@anees042

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions