Re: com php-src: Fixed warning of no return in non-void funciton: Zend/zend_vm_def.h Zend/zend_vm_execute.h Zend/zend_vm_gen.php
| From: | Laruence | Date: | Fri, 14 Dec 2012 09:38:50 +0000 |
| Subject: | Re: com php-src: Fixed warning of no return in non-void funciton: Zend/zend_vm_def.h Zend/zend_vm_execute.h Zend/zend_vm_gen.php | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-70726@lists.php.net to get a copy of this message | ||
Zend/zend_generators.c:734: warning: control reaches end of non-void function
yes it's nothing difference , just make the compiler happy
thanks
On Fri, Dec 14, 2012 at 5:35 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>> Commit: 9fb5cfdeb1f13f2e3ab3751494cdd366bc78cb38
>> Author: Xinchen Hui <laruence@php.net> Fri, 14 Dec 2012 17:21:43 +0800
>> Parents: 359d91a80756cd9a9ce945c0e3aa1d2038633e7a
>> Branches: PHP-5.5
>>
>> Link:
>> http://git.php.net/?p=php-src.git;a=commitdiff;h=9fb5cfdeb1f13f2e3ab3751494cdd366bc78cb38
>>
>> Log:
>> Fixed warning of no return in non-void funciton
>
> Why this is necessary? zend_error_noreturn already has an attribute that
> is meant to do exactly that.
>
> --
> Stanislav Malyshev, Software Architect
> SugarCRM: http://www.sugarcrm.com/
> (408)454-6900 ext. 227
--
Laruence Xinchen Hui
http://www.laruence.com/