[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils snapshot vs gcc7-to-be: new test-calloc-gnu.c and test-can
From: |
Jim Meyering |
Subject: |
Re: coreutils snapshot vs gcc7-to-be: new test-calloc-gnu.c and test-canonicalize.c warnings |
Date: |
Sat, 4 Mar 2017 14:41:08 -0800 |
On Sat, Mar 4, 2017 at 2:33 AM, Bruno Haible <address@hidden> 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 <address@hidden>
>
> 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.