Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_hash.c
| From: | Ilia A. | Date: | Tue, 05 Nov 2002 13:33:43 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_hash.c | ||
| References: | 1 2 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-556@lists.php.net to get a copy of this message | ||
On November 5, 2002 08:22 am, Zeev Suraski wrote:
> At 14:20 05/11/2002, Ilia A. wrote:
> >First there is the compiler warning about un-initialized variable, which
> >would
> >occur if ordered is null. If that can never happen then this is just a
> >compiler warning fix. If it can happen, then this prevents a possible
> >undefined behaviour because p2 would be used without having it's value
> > set, meaning that that any random value could be in there.
>
> It doesn't happen, I also don't recall ever seeing a compiler warning about
> it (the compiler should be bright enough to see that for itself...). What
> compiler are we talking about here?
gcc 2.95.3
I got the error when I compiled ZE2 with -O3 -g3 -Wall flags.
Ilia