|
From: | Paul Eggert |
Subject: | Re: [PATCH] acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function |
Date: | Mon, 25 Jun 2018 18:35:23 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 06/25/2018 06:20 PM, Bruno Haible wrote:
One version of GCC wants the 'const' attribute, another one complains about it... Isn't it time to disable either -Werror or -Wattribute?
I've found -Wattribute and -Werror to be useful with recent GCC. However, the cost of pacifying older GCC's warnings typically exceeds the benefit.
One possibility is to modify Gnulib to disable -Wattribute in GCC 7 and earlier. Another possibility, which I think I might prefer mildly, is just to ask people to use the latest version of GCC if they want to enable GCC warnings.
[Prev in Thread] | Current Thread | [Next in Thread] |