IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2012, 9:16:29 PM (14 years ago)
Author:
eugene
Message:

gcc 4.6.3 adds a new level of pedantry: if a variable is defined and set, but not used, it raises a warning. with -Werror, this forces a lot of minor fixes. I do not think any of the resultings changes caught any real problems, at least not with any commonly used code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/Ohana/src/opihi/dvo/calextract.c

    r27435 r33985  
    66 
    77  off_t i, Nr;
    8   int Nsecfilt, NSTAR, N, mode[2];
     8  int N, mode[2];
    99
    1010  PhotCode *code[2];
     
    2424  /* load photcode information */
    2525  if (!InitPhotcodes ()) return (FALSE);
    26   Nsecfilt = GetPhotcodeNsecfilt ();
    2726
    2827  /* command line arguments */
     
    4140  /* one unique value per star */
    4241  N = 0;
    43   NSTAR = 1;
    4442  ALLOCATE (vec, Vector *, NVEC);
    4543  if ((vec[Nd]  = SelectVector ("cal:dmag",     ANYVECTOR, TRUE)) == NULL) goto escape;
     
    7472
    7573    # if (0)
     74    int NSTAR = 1;
     75    int Nsecfilt = GetPhotcodeNsecfilt ();
    7676    /* extract values, assign to vectors */
    7777    for (i = 0; i < catalog.Naverage; i++) {
Note: See TracChangeset for help on using the changeset viewer.