On Wed, July 23, 2008 1:42 am, Alexey Feldgendler wrote:
"worse" is subjective.
int foo = 0;
will put foo in the "initialised data" section with a value of 0.
int foo;
will put foo in the "uninitialised data" section which is guaranteed
to be initialised to zero when the kernel is loaded.
The former adds 4 bytes to the size of vmlinux.
4 bytes isn't much, but if there are hundreds of these, it is just a
waste of space.
If it really offends you, use
int foo /* = 0 */;
but that isn't really necessary. It wont take long before you start
reading
int foo;
in global context as "foo is initialised to 0".
NeilBrown
_______________________________________________
Openmoko community mailing list
community@lists.openmoko.orghttp://lists.openmoko.org/mailman/listinfo/community