
18 Aug
2012
18 Aug
'12
1:41 a.m.
On Friday 17 August 2012 16:56:12 Joe Hershberger wrote:
--- a/common/cmd_test.c +++ b/common/cmd_test.c
-#if 0 +#ifdef DEBUG {
printf("test:");
left = 1; while (argv[left])debug("test(%d):", argc);
printf(" %s", argv[left++]);
}debug(" '%s'", argv[left++]);
#endif
i think you can even remove the #ifdef DEBUG here since debug() will expand to nothing, and gcc should do DCE on the whole block -mike