bug-m4
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bogus -Wsuggest-attribute=cold warning


From: Bruno Haible
Subject: Re: bogus -Wsuggest-attribute=cold warning
Date: Tue, 20 Aug 2024 10:25:48 +0200

I wrote:
> Reminder about the other warning:
> 
>   CC       macro.o
> In function 'call_macro.part.0':
> ../../../src/macro.c:272:1: error: function might be candidate for attribute 
> 'cold' [-Werror=suggest-attribute=cold]
>   272 | call_macro (symbol *sym, int argc, token_data **argv,
>       | ^~~~~~~~~~
> 
> Which is a bogus warning as well. I cannot find it reported in the GCC bug
> tracker. But at least, it's fixed in GCC 14.

Still, why make things hard for users or CI jobs that use GCC 11, 12, or 13?

Here is a proposed patch that silences this warning as well.
It can probably be scheduled for removal in 3 or 4 years.

Attachment: 0001-maint-Avoid-a-gcc-13-warning-that-makes-enable-gcc-w.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]