[lkml]   [2000]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2.3.48] initrd fix (Mike Galbraith)
On Sun, 27 Feb 2000, you wrote:
> > Is there any reason (apart from making vmlinux and kernel binary images larger)
> > for explicitly initialising variables with 0 when they will be placed in the
> > BSS anyway?
> Long long ago (before 1.0) the kernel didnt zero the BSS. Some legacy of
> that survives in old assignments - otherwise none

One *small* reason is that you will get "variable may be used uninitialized"
warnings from the compiler if the variable is always set inside conditionals
and it can't be proved that every path hits an assignment. So if
compiling without warnings is important to you, you have to either initialize
the variable or suppress the warnings.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:56    [W:0.105 / U:5.044 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site