timeout icon indicating copy to clipboard operation
timeout copied to clipboard

Definition of struct timeout_cb get warning

Open ygj6 opened this issue 5 years ago • 0 comments

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);

ygj6 avatar May 30 '19 03:05 ygj6