![]() | |||||||||||||
Messages in this thread |
Hi! > I did not found this feature in standard. I did :-) C99, section 6.7.8 "Initialization", constraint 10: "... If an object that has static storage duration is not initialized explicitly, then: - if it has pointer type, it is initialized to a null pointer; - if it has arithmetic type, it is initialized to (positive or unsigned) zero; ..." > More, future versions of gcc will give at least warning, if not error, like > "use of uninitialized variable". Yes, such warning exists, but only for automatic variables. Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth Quote of the day: ' - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2005-03-22 13:59 [from the cache] ©2003-2008 | |||||||||||||