Re: com php-src: Suppress compliation warning "warning: passing argument 1 of _efree discards qualifiers from pointer target type":
ext/intl/intl_data.h
| From: | Christopher Jones | Date: | Thu, 22 Aug 2013 17:23:21 +0000 |
| Subject: | Re: com php-src: Suppress compliation warning "warning: passing argument 1 of _efree discards qualifiers from pointer target type": ext/intl/intl_data.h |
||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-73081@lists.php.net to get a copy of this message | ||
Resend due to Spam URI Realtime Blocklist (SURBL) bounce.
On 08/22/2013 08:51 AM, Christopher Jones wrote:
On 8/22/13 1:23 AM, Nikita Popov wrote:On Thu, Aug 22, 2013 at 12:06 AM, Christopher Jones <sixd@php.net> wrote:Assuming this suppresses aNot in this usage. The const is valid in the caller of the macros. It's a compile warning only: the free call is never executed on the const pointer due to the protecting "if". I may be able to move the cast up to the macro invocation so that not all users of the macros will have the warning suppressed.constqualifier, wouldn't it be better to remove said qualifier, rather than suppressing the warning? Nikita