On 01/11/2011 03:52 PM, Marcel Holtmann wrote:
>> so these are declared as get_modems(void) btw. The compiler should have
>> warned you about this.
> I don't get a compiler warning for this one, not even with -Wall
> -Wextra -Wpedantic on GCC 4.4.3.
> But a new rule in the coding-style should perhaps be added, e.g:
> M15: Use void if function has no parameters
> A function with no parameters must use void in the parameter list.
> void foo(void)
> void foo() // Wrong
please go ahead and send a patch for this. I am happily adding it.
Sorry I'm not following why this is a good idea?