[PATCH] Avoid spurious gcc warning in debugger.c

David Bremner david at tethera.net
Mon Oct 8 08:42:18 PDT 2018


Daniel Kahn Gillmor <dkg at 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 at dme.org

Could one or both of you maybe produce a merged series?

d


More information about the notmuch mailing list