Skip to content

--wrap-static-fns generates code that returns a call to a void function #2485

Closed
@ojeda

Description

@ojeda

Input C/C++ Header

static inline void f(void) {}

Bindgen Invocation

$ bindgen --wrap-static-fns --experimental input.h

Actual Results

In /tmp/bindgen/extern.c:

void f__extern() { return f(); }

Expected Results

In C one should avoid returning a call to a void function to please -Wpedantic:

void f__extern() { f(); }

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