Ignore:
Timestamp:
05/10/11 15:02:56 (13 years ago)
Author:
Malte Marquarding
Message:

Remove various compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MathUtils.cpp

    r2127 r2163  
    133133                       const Vector<Float>& in, const Vector<Bool>& mask,
    134134                       Bool relaxed, Bool ignoreOther) {
     135  (void) ignoreOther; //suppress unused warning
    135136  Vector< Vector<Float> > weights(8);
    136137  Vector<Float> vals(3);
     
    181182                             float width)
    182183{
    183   Int hwidth = Int(width+0.5);
    184   Int fwidth = hwidth*2+1;
     184  uInt hwidth = Int(width+0.5);
     185  uInt fwidth = hwidth*2+1;
    185186  out.resize(in.nelements());
    186187  outflag.resize(flag.nelements());
     
    189190  Float medval = ms.add(const_cast<Vector<Float>& >(in)(sl),
    190191                  const_cast<Vector<Bool>& >(flag)(sl));
     192  (void) medval;//suppress unused warning
    191193  uInt n = in.nelements();
    192194  for (uInt i=hwidth; i<(n-hwidth); ++i) {
     
    208210                       float width, int order)
    209211{
    210   Int hwidth = Int(width+0.5);
    211   Int fwidth = hwidth*2+1;
     212  uInt hwidth = Int(width+0.5);
     213  uInt fwidth = hwidth*2+1;
    212214  out.resize(in.nelements());
    213215  outmask.resize(mask.nelements());
Note: See TracChangeset for help on using the changeset viewer.