On Fri, Dec 14, 2012 at 5:40 PM, Stas Malyshev wrote:
> Hi!
>
>> Zend/zend_generators.c:734: warning: control reaches end of non-void function
>>
>> yes it's nothing difference , just make the compiler happy
>
> zend_error_noreturn already supposed to do that. Why it does not do it
> in your case?
Hi!
> a couple of compilers or analyzers are confused by this macro, not
> sure why, but reducing the noises at no cost help to get a better view
> in future checks.
There is a cost - now we have both zend_error_noreturn and return
statements, which is unneeded. If we say zend_error_noreturn does
On Fri, Dec 14, 2012 at 10:40 AM, Stas Malyshev wrote:
> Hi!
>
>> Zend/zend_generators.c:734: warning: control reaches end of non-void function
>>
>> yes it's nothing difference , just make the compiler happy
>
> zend_error_noreturn already supposed to do that. Why it does not do it
> in your case
Hi!
> Zend/zend_generators.c:734: warning: control reaches end of non-void function
>
> yes it's nothing difference , just make the compiler happy
zend_error_noreturn already supposed to do that. Why it does not do it
in your case? Which compiler do you use?
--
Stanislav Malyshev, Software Arc
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 wrote:
> Hi!
>
>> Commit:9fb5cfdeb1f13f2e3ab3751494cdd366bc78cb38
>> Author:Xinchen Hui
Hi!
> Commit:9fb5cfdeb1f13f2e3ab3751494cdd366bc78cb38
> Author:Xinchen Hui 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=9fb5cfdeb1f13f2e3ab3751494c
Commit:9fb5cfdeb1f13f2e3ab3751494cdd366bc78cb38
Author:Xinchen Hui 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:
F