printf() checking for custom functions

Randall Hopper
Wed Sep 26 14:32:00 GMT 2007

John (Eljay) Love-Jensen:
 |>A problem I hit with it though is that:
 |>   myDebug( "" );
 |You'll need to use a convention to avoid that, such as putting in one space:
 |MyDebug(" ");
 |Or using a different function:

In the absense of a compiler fix, that's what I'd planned to do, since it's
much preferable to not having any argument type checking.

Would be helpful if there was a way to tell gcc to follow printf()
standards precisely though.  -Werror and __attribute__ format are too
valuable to do without.



More information about the Gcc-help mailing list