This error occurs when you try to declare a function with no arguments, and
-Werror=strict-prototypes, as follows:
Fix it by declare it as
This is because in c,
foo(void) takes no arguments while
foo() takes a infinite
number of arguments.
Thanks to this stackoverflow post