-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Hello,
I see in the source code there is some potential compilation error.
1> Inline function definition:
In file /drivers/kw2xrf/include/kw2xrf_intern.h
Inline function in the header file should be defined with "static inline".
Compilation error will happen if we change the gcc flag from -Os to -O0
2> Partially include source file in nanocoap package:
In file /pkg/nanocoap/Makefile.nanocoap
handler.c should be included into Makefile.nanocoap. The is a function coap_handle_req() in nanocoap.c references to coap_resources[] which is defined in handler.c.
However coap_hanlde_req() is not called, gcc can compile successfully because of the option flag -ffunction-sections -fdata-sections.
Metadata
Metadata
Assignees
Labels
No labels