IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16057


Ignore:
Timestamp:
Jan 14, 2008, 1:46:57 PM (18 years ago)
Author:
eugene
Message:

fixing Wall,Werror warnings; fixed sort error

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

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/include/dvo.h

    r16040 r16057  
    335335void dvo_catalog_create (SkyRegion *region, Catalog *catalog);
    336336void dvo_catalog_free (Catalog *catalog);
     337void dvo_catalog_free_data (Catalog *catalog);
    337338int dvo_catalog_check (Catalog *catalog, int Nsecfilt, int extend);
    338339int dvo_catalog_lock (Catalog *catalog, int lockmode);
     
    354355int dvo_catalog_save_split (Catalog *catalog, char VERBOSE);
    355356int dvo_catalog_update_split (Catalog *catalog, char VERBOSE);
     357
     358int dvo_catalog_load_segment (Catalog *catalog, int VERBOSE, int start, int Nrows);
     359int dvo_catalog_load_segment_split (Catalog *catalog, int VERBOSE, int start, int Nrows);
    356360
    357361/*** conversion functions / I/O conversions ***/
  • trunk/Ohana/src/libdvo/src/dvo_catalog.c

    r15747 r16057  
    396396
    397397int dvo_catalog_load_segment (Catalog *catalog, int VERBOSE, int start, int Nrows) {
    398  
    399   int Naxis, split, status;
    400   char measure[80];
    401398
    402399  switch (catalog[0].catmode) {
  • trunk/Ohana/src/libdvo/src/dvo_catalog_split.c

    r15748 r16057  
    4040  *mySecfilt = secfilt;
    4141  *myNsecfilt = Nsecfilt;
     42  return (TRUE);
    4243}
    4344
     
    157158int dvo_catalog_load_split (Catalog *catalog, int VERBOSE) {
    158159
    159   int Nbytes, Nitems, Nexpect, Naverage, Nmeasure, Nmissing, Nsecfilt, status;
     160  int Nbytes, Nitems, Naverage, Nmeasure, Nmissing, Nsecfilt, status;
    160161  Header header;
    161162  FTable ftable;
     
    328329int dvo_catalog_load_segment_split (Catalog *catalog, int VERBOSE, int start, int Nrows) {
    329330
    330   int Nbytes, Naverage, Nsecfilt, Nexpect, Nitems, Nmeasure, Nmissing;
     331  int Nbytes, Naverage, Nexpect, Nitems, Nmeasure, Nmissing;
    331332  Header header;
    332333  FTable ftable;
     
    469470
    470471  int Nitems;
    471   Matrix matrix;
    472472  Header header;
    473473  FTable ftable;
    474   Catalog *catfile;
    475474  SecFilt *primary, *secfilt;
    476   int i, j, Nsecfilt, Nallfilt, Ntotal;
     475  int Nsecfilt;
    477476  int Naves_disk_new, Nmeas_disk_new, Nmiss_disk_new, Nsecf_disk_new;
    478477  int first, start, Nrows;
     
    650649int dvo_catalog_update_split (Catalog *catalog, char VERBOSE) {
    651650
    652   int i, Nx, Ny, Nlines;
    653   int Nitems, Nskip, Nout, Ndisk, Nstart;
    654   Matrix matrix;
     651  int Nitems;
    655652  Header header;
    656653  FTable ftable;
    657   Catalog *catfile;
    658654  SecFilt *primary, *secfilt;
    659   int j, Nsecfilt, Nallfilt, Ntotal;
     655  int Nsecfilt;
    660656  int Naves_disk_new, Nmeas_disk_new, Nmiss_disk_new, Nsecf_disk_new;
    661657  int first, start, Nrows;
  • trunk/Ohana/src/libdvo/src/skyregion_gsc.c

    r16040 r16057  
    212212  filename = table[0].filename;
    213213
    214 # define SWAPFUNC(A,B){ int tmp; \
    215   char     *tempfile = filename[A]; filename[A] = filename[B]; filename[B] = tempfile; \
     214# define SWAPFUNC(A,B){ \
     215  if (table[0].filename) { \
     216    char     *tempfile = filename[A]; filename[A] = filename[B]; filename[B] = tempfile; \
     217  } \
    216218  SkyRegion tempregion = regions[A]; regions[A] = regions[B]; regions[B] = tempregion; \
    217219}
Note: See TracChangeset for help on using the changeset viewer.