svn commit: trunk/busybox/init

Denys Vlasenko vda.linux at
Tue Dec 25 16:06:02 UTC 2007

On Tuesday 25 December 2007 04:30, vapier at wrote:
> Author: vapier
> Date: 2007-12-24 20:30:14 -0800 (Mon, 24 Dec 2007)
> New Revision: 20683
> Log:
> convert #if to if -- let gcc optimize away dead code for us


I worry that sometimes gcc is too dumb.
#if/#endif is dead sure method to disable something,
hoping for compiler/linker to be smart is less reliable.

Although I agree that #ifdef forest tend to clutter up things
(for example, dreaded httpd.c), and I'd like such cases to be
cleaned up.

Bit in these cases:

# define BRAADS 1
# define BRAADS 0

replacing two #directives with five doesn't seem to be an improvement
in readability.

More information about the busybox-cvs mailing list