[PATCH] Silence -O3 -Wall warning in malloc/hooks.c with GCC 7 [BZ #22052]
H.J. Lu
hjl.tools@gmail.com
Sun Oct 15 13:35:00 GMT 2017
On Mon, Sep 18, 2017 at 7:02 AM, Florian Weimer <fweimer@redhat.com> wrote:
> On 09/04/2017 10:29 PM, H.J. Lu wrote:
>>
>> On Mon, Sep 4, 2017 at 1:33 AM, Florian Weimer <fweimer@redhat.com> wrote:
>>>
>>> On 09/03/2017 05:48 PM, H.J. Lu wrote:
>>>>
>>>> + unsigned char *magic_p = NULL;
>>>
>>>
>>> I think the current practice is to use <libc-diag.h> to suppress the
>>> warning.
>>
>>
>> Is there a usage example for this warning?
>
>
> Search for DIAG_PUSH_NEEDS_COMMENT in the sources.
>
Here is a patch. Tested on x86-64. I am going to check it in.
Thanks.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Silence-O3-Wall-warning-in-malloc-hooks.c-with-GCC-7.patch
Type: text/x-patch
Size: 1981 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20171015/4b53e4c1/attachment.bin>
More information about the Libc-alpha
mailing list