A
Army1987
So I would, but it silences [sp]lint. I've seen code withBen said:The cast is really not helping here. I'd loose it.
#define V (void)
static void help()
{
V printf("ent -- Calculate entropy of file. Call");
V printf("\n with ent [options] [input-file]");
/* etc... */
V printf("\n %s\n", UPDATE);
}
*cough*
Static checkers are tools, not ends... Or are they?
(That macro manages to be even uglier than the "strange" placement of \n's,
and I've seen much more beautiful macros in IOCCC entries...)
I'll note, in passing, that I don't usually put a return at the end of
void function. I wonder if other people do?
I do in the same circumstances as the ones when I put a continue at the
end of a loop. Namely, when there is no other statement in the block
before it.