This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: printf() checking for custom functions


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:
 |
 |MyDebugEmpty();
...

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.

Thanks,

Randall


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]