IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2012, 11:46:01 AM (14 years ago)
Author:
eugene
Message:

updates for pedantic gcc, mods to relphot average mags to handle GPC1 stacks

Location:
trunk/Ohana/src/libdvo/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/src/ImageOps.c

    r31636 r34088  
    88{
    99
    10   int j, flipped, status, InPic;
     10  int j, flipped, status;
    1111  off_t i, n, *subset;
    1212  int npts;
     
    6565      x[2] = image[i].NX; y[2] = image[i].NY;
    6666      x[3] = 0;           y[3] = image[i].NY;
    67       InPic = flipped = FALSE;
     67      flipped = FALSE;
    6868      for (j = 0; j < 4; j++) {
    6969        XY_to_RD (&r, &d, x[j], y[j], &image[i].coords);
     
    9595      x[2] = image[i].NX; y[2] = image[i].NY;
    9696      x[3] = 0;           y[3] = image[i].NY;
    97       InPic = flipped = FALSE;
     97      flipped = FALSE;
    9898      for (j = 0; j < 4; j++) {
    9999        XY_to_RD (&r, &d, x[j], y[j], &image[i].coords);
  • trunk/Ohana/src/libdvo/src/coordops.c

    r31663 r34088  
    6868  mode = GetProjectionMode (proj);
    6969  if (proj == PROJ_NONE) return (FALSE);
    70   if (proj == PROJ_MODE_NONE) return (FALSE);
     70  if (mode == PROJ_MODE_NONE) return (FALSE);
    7171
    7272  stht = ctht = 1;
     
    201201  mode = GetProjectionMode (proj);
    202202  if (proj == PROJ_NONE) return (FALSE);
    203   if (proj == PROJ_MODE_NONE) return (FALSE);
     203  if (mode == PROJ_MODE_NONE) return (FALSE);
    204204
    205205  /**** Locally Cartesian Projections ****/
  • trunk/Ohana/src/libdvo/src/dbCmdlineFields.c

    r31636 r34088  
    136136    // XXX the ra and dec range depend on the projection.
    137137    // XXX this is wrong...
    138     int status;
    139     status = XY_to_RD (&Rmin, &Dmin, graphsky.xmin, graphsky.ymin, &graphsky.coords);
    140     status = XY_to_RD (&Rmax, &Dmax, graphsky.xmax, graphsky.ymax, &graphsky.coords);
     138    // int status;
     139    XY_to_RD (&Rmin, &Dmin, graphsky.xmin, graphsky.ymin, &graphsky.coords);
     140    XY_to_RD (&Rmax, &Dmax, graphsky.xmax, graphsky.ymax, &graphsky.coords);
    141141  }
    142142
  • trunk/Ohana/src/libdvo/src/dbRPN.c

    r31635 r34088  
    44dbStack *dbRPN (int argc, char **argv, int *nstack) {
    55 
    6   int type, Nx, Ny;
     6  int type;
    77  int i, j, Nstack, Nop_stack, NSTACK;
    88  dbStack *stack, *op_stack;
     
    1717  }
    1818 
    19   Nx = Ny = Nstack = Nop_stack = 0;
     19  Nstack = Nop_stack = 0;
    2020  for (i = 0; i < argc; i++) {
    2121   
  • trunk/Ohana/src/libdvo/src/dvo_image.c

    r33649 r34088  
    111111      exit (2);
    112112  }
    113   return (TRUE);
     113  return (status);
    114114}
    115115
  • trunk/Ohana/src/libdvo/src/dvo_tiny_values.c

    r33649 r34088  
    5151
    5252    for (i = 0; i < catalog[0].Naverage; i++) {
    53       CopyAverageToTiny (&catalog[0].averageT[i], &catalog[0].average[i]);
     53      CopyAverageToTiny (&averageT[i], &average[i]);
    5454    }
    5555  }
     
    6161
    6262    for (i = 0; i < catalog[0].Nmeasure; i++) {
    63       CopyMeasureToTiny (&catalog[0].measureT[i], &catalog[0].measure[i]);
     63      CopyMeasureToTiny (&measureT[i], &measure[i]);
    6464    }
    6565  }
  • trunk/Ohana/src/libdvo/src/skyregion_gsc.c

    r33649 r34088  
    271271  int i, j, Nz, NZ, Nregions, poleRegion;
    272272  SkyRegion *regions;
    273   SkyRegion tempregion;
    274273  SkyRegionZone *zones;
    275274  char basename[64];
     
    294293      poleRegion = SIGN(regions[i].Dmin);
    295294      Nregions --;
    296       tempregion = regions[i];
    297295      for (j = i; j < Nregions; j++) {
    298296        regions[j] = regions[j+1];
Note: See TracChangeset for help on using the changeset viewer.