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

2018-10-21 Thread David Bremner
Daniel Kahn Gillmor 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 &&

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

2018-10-08 Thread 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 writes: >> >>> Without this patch, gcc 8.2.0-7 complains: >>> >>> debugger.c: In function ‘debugger_is_active’: >>> debugger.c:40:24: warning: passing arg

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

2018-10-08 Thread David Edmondson
On Monday, 2018-10-08 at 12:42:18 -03, David Bremner wrote: > Daniel Kahn Gillmor 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

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

2018-10-08 Thread David Bremner
Daniel Kahn Gillmor 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 &&

[PATCH] Avoid spurious gcc warning in debugger.c

2018-10-06 Thread Daniel Kahn Gillmor
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 && ~~~ ^~~ This is pret