Skip to content

Potential compilation error #6930

@kamejoko80

Description

@kamejoko80

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions