[Insight-developers] Warnings in itkNumericTraits.h

Williams, Norman K norman-k-williams at uiowa.edu
Thu May 19 16:04:07 EDT 2011


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.




________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________


More information about the Insight-developers mailing list