We will include -Wstrict-prototypes in RPM_OPT_FLAGS via enabling
it for -Wall soon, which will warn about non-prototypes like

 void foo();

which cause problems if foo is called before its definition is reached
and arguments with default argument promotions applied do not match
the argument types.  For example

 void foo();

 { .. foo(1.0); .. }

 void foo(float x)
 {
   ...
 }

will call foo with a double argument.

Note that

  void foo();

is not a valid prototype for a function with zero arguments in C, but

  void foo(void);

is.  The above case will probably cause a lot of extra warnings.

Thanks,
Richard.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to