[Insight-developers] Warnings in itkNumericTraits.h

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Thu May 19 16:07:07 EDT 2011


Le 19 mai 11 à 22:04, Williams, Norman K a écrit :

> If you use '-Wall -Wextra' when you compile, every place
> itk::NumericTraits::SetLength() is defined for a scalar type, it  
> throws a
> warning:
>
> ITK/Modules/Core/Common/include/itkNumericTraits.h:243: warning:  
> unused
> parameter 'm'
>
>
> You can preserve the function signature and get rid of the warning by
> leaving the parameter anonymous, I.e.change
>
>  static void SetLength(ValueType & m, const unsigned int s)
>
>
> to
>  static void SetLength(ValueType &, const unsigned int s)
>
>
> Does anyone think that is a bad idea?  It is responsible for  
> thousands of
> warnings in a -Wall build.


http://review.source.kitware.com/#change,1682

Please merge it if it looks good enough so we won't have thousands of  
warning tomorrow :-)

Gaëtan


-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110519/d6b0fa14/attachment.pgp>


More information about the Insight-developers mailing list