mpi: Suppress newer gcc warnings.
    Jussi Kivilinna 
    jussi.kivilinna at iki.fi
       
    Thu Sep  5 09:16:46 CEST 2013
    
    
  
On 05.09.2013 02:21, Dmitry Eremin-Solenikov wrote:> Hello,
> 
> I see a typo in a definition of GCC_ATTR_UNUSED macro:
> 
> +#if __GNUC__ > 2 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 5 )
> +#define GCC_ATTR_UNUSED  __attribute__ ((unused))
> +#else
> 
> First line will be true for all gcc starting gcc 3.0, not 3.5.
> The comparison line should read
> 
> +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 5 )
> 
> Shall it not?
> 
Or is just having __GNUC__ > 2 enough? GCC manuals for 3.0.4 and 2.95.3 show support for 'unused' attribute.
-Jussi
    
    
More information about the Gcrypt-devel
mailing list