This error occurs when you try to declare a function with no arguments, and compile with -Werror=strict-prototypes, as follows:

int foo();

Fix it by declare it as

int foo(void);

This is because in c, foo(void) takes no arguments while foo() takes a infinite number of arguments.

Thanks to this stackoverflow post