On 2024-09-15 02:25, Bruno Haible wrote:
     it can happen that you add the attribute in order to placate one GCC 
version
     and then another GCC version complains that you should not have added it.

Yes, and if memory serves older GCC versions were pretty bad about this, and that caused me (at least) to add attributes that were in hindsight unnecessary. GCC has gotten better about not diagnosing "missing" attributes for static functions, so these old additions can be removed whenever anyone gets around to it.

I typically worry about pacifying only current GCC, as it's more trouble than it's typically worth to work around old GCC bugs merely to suppress false alarms. With older GCC, I suggest configuring with --disable-gcc-warnings or equivalent.

Reply via email to