This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Uninitialized variabales in glibc 2.1


Philip Blundell <pb@nexus.co.uk> writes:

| In message <m0yUNMP-000597C@ocean.lucon.org>, H.J. Lu writes:
| >Many variables are not initialized. I don't think it is a good design
| >to pass the address to a dummy to a function. You don't know how it is
|
| Initialising an automatic requires the compiler to generate extra
| instructions, which is a waste of time and space.  I don't think we should do
| this unless there is a real bug.  When the variables are only passed to other
| glibc internal functions we can take care to avoid using the uninitialised
| value.

For cases like this, I put the initialization code inside
`#ifdef lint' ... `#endif'.  Then those who want to eliminate
all warnings just compile with -Dlint.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]