Skip to content

Definition of struct timeout_cb get warning #26

@ygj6

Description

@ygj6

In Xcode, The definition of struct timeout_cb in timeout.h

struct timeout_cb {
	void (*fn)();
	void *arg;
}; /* struct timeout_cb */

In this line

void (*fn)();

I get a warning "This function declaration is not a prototype Insert 'void'". Can you add a "void" as this:

void (*fn)(void);

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