[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/3] maint: port to GCC 8
From: |
Pádraig Brady |
Subject: |
Re: [PATCH 3/3] maint: port to GCC 8 |
Date: |
Thu, 3 May 2018 19:04:14 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 03/05/18 13:05, Paul Eggert wrote:
> -void _GL_ATTRIBUTE_PURE _GL_ATTRIBUTE_CONST
> -chopt_free (struct Chown_option *);
> +void chopt_free (struct Chown_option *);
That could break previous versions of gcc?
Checking... yes :(
src/chown-core.c:70:1: error: function might be candidate
for attribute 'const' [-Werror=suggest-attribute=const]
chopt_free (struct Chown_option *chopt _GL_UNUSED)
^~~~~~~~~~
This function is actually empty (so this sounds like a gcc8 bug).
Anyway I pushed a solution that just defines away the empty function.
thanks for the fixes,
Pádraig.