On Sat, Mar 4, 2017 at 2:33 AM, Bruno Haible <br...@clisp.org> wrote:
> Jim Meyering wrote:
>> test-canonicalize.c:78:13: error: argument 1 null where non-null
>> expected [-Werror=nonnull]
>>      result1 = canonicalize_file_name (null_ptr ());
>>      ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> This should fix it.
>
>
> 2017-03-04  Bruno Haible  <br...@clisp.org>
>
>         tests: Avoid compiler warning about uses of null_ptr.
>         * tests/null-ptr.h: New file.
>         * tests/test-canonicalize.c: Include null-ptr.h.
>         (null_ptr): Remove function.
>         * tests/test-canonicalize-lgpl.c: Likewise.
>         * tests/test-memmem.c: Likewise.
>         * tests/test-ptsname_r.c: Likewise.
>         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
>         * modules/canonicalize-lgpl-tests: Likewise.
>         * modules/memmem-tests: Likewise.
>         * modules/ptsname_r-tests: Likewise.
>         Reported by Jim Meyering.

Confirmed. Thank you, Bruno.

Reply via email to