Samuel Tardieu wrote:
> Agreed. However since there are more than 50 static functions marked pure in 
> C files already, and this seems to be the only missed compiler warning in GCC 
> 14.2, I thought you were favoring the absence of warning.

We added these attributes before we realized that
  - it's logically nonsense to bother the developer with this, for 'static'
    functions,
  - since GCC versions differ in their detection of which functions are pure,
    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.

Bruno




Reply via email to