Re: [PATCH] Avoid spurious gcc warning in debugger.c

Subject: Re: [PATCH] Avoid spurious gcc warning in debugger.c

Date: Mon, 08 Oct 2018 12:04:57 -0400

To: David Edmondson, David Bremner, Notmuch Mail

Cc:

From: Daniel Kahn Gillmor


On Mon 2018-10-08 16:47:08 +0100, David Edmondson wrote:
> On Monday, 2018-10-08 at 12:42:18 -03, David Bremner wrote:
>
>> Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:
>>
>>> Without this patch, gcc 8.2.0-7 complains:
>>>
>>> debugger.c: In function ‘debugger_is_active’:
>>> debugger.c:40:24: warning: passing argument 2 to restrict-qualified parameter aliases with argument 1 [-Wrestrict]
>>>      if (readlink (buf, buf, sizeof (buf)) != -1 &&
>>>                    ~~~  ^~~
>>>
>>
>> There seems to be some overlap with dme's recent patch
>>
>>       id:20181004094545.18710-1-dme@dme.org
>>
>> Could one or both of you maybe produce a merged series?
>
> The change is really the same.

i'm fine with either one as well.  thanks, and sorry that i missed dme's
proposal when preparing this one.

    --dkg
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: