Re: [PATCH] Clean up struct initalizations

From: Date: Tue, 27 Nov 2007 18:57:29 +0000
Subject: Re: [PATCH] Clean up struct initalizations
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-33469@lists.php.net to get a copy of this message
you are quoting c99… and we are still using "c90" mode, as far as I remember
I couldn't find any c90 available online for free but anyway that's long-standing practice that all compilers I know follow. gcc's own manual says: -Wmissing-field-initializers
    Warn if a structure's initializer has some fields missing. For example, the following code would cause such a warning, because x.h is implicitly zero:
struct s { int f, g, h; }; struct s x = { 3, 4 }; -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#33469) next »