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/STPolLinear.cpp

    r1189 r2163  
    3030Vector<Float> asap::STPolLinear::getStokes( uint index )
    3131{
    32   if ( index < 0 || index >4 ) throw(AipsError("Stokes index out of range"));
     32  if ( index > 4 ) throw(AipsError("Stokes index out of range"));
    3333  Vector<Float> out;
    3434  Float phase = getTotalPhase();
     
    6161    throw(AipsError("You must have 4 linear polarizations to run this function"));
    6262  }
    63   if ( index < 0 || index >4 ) throw(AipsError("LinPol index out of range"));
     63  if ( index >4 ) throw(AipsError("LinPol index out of range"));
    6464  Vector<Float> out,q,u;
    6565  if ( nspec() == 4) {
     
    129129{
    130130  // phase isnt used, just ro keep interface the same for all pol operations
     131  (void) phase;
    131132  if (nspec() != 4) {
    132133    throw(AipsError("You must have 4 linear polarizations to run this function"));
Note: See TracChangeset for help on using the changeset viewer.