Re: Compiler Warning with gcc 4.2
| From: | Tony Ser | Date: | Thu, 01 May 2008 21:23:09 +0000 |
| Subject: | Re: Compiler Warning with gcc 4.2 | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-5436@lists.php.net to get a copy of this message | ||
Maybe it is for optimization, but the changes also fix the warning. Can't
complain.
BTW, someone clarified that the warning only shows up when using g++ not
gcc. Sorry for the confusion.
using -Wno-write-strings flag will bypass it.
Tony
"Antony Dovgal" <tony@daylessday.org> wrote in message
news:4818C47A.3000907@daylessday.org...
> On 30.04.2008 22:35, Tony Ser wrote:
>> As Alexey mentioned it's been fixed in 5.3
>> Just take a look at the definition of zend_function_entry in zend_api.h,
>> you'll see the difference.
>
> IIRC the 'const' thing there was never meant to fix any warnings, it was a
> part of optimization patch.
> See
> http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_API.h?r1=1.291&r2=1.292
>
> --
> Wbr, Antony Dovgal