Ignore:
Timestamp:
Feb 7, 2009, 10:50:34 PM (17 years ago)
Author:
cmv
Message:

char* -> const char* pour regler les problemes de deprecated string const... + comparaison unsigned signed + suppression EVOL_PLANCK rz+cmv 07/02/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsinoutfile.cc

    r3452 r3572  
    157157}
    158158/* -- Fonction utilitaire pour verifier le code d'erreur fitsio -- */
    159 static inline bool FitsCheckStatus(int st, char * emsg = NULL) {
     159static inline bool FitsCheckStatus(int st, const char * emsg = NULL) {
    160160  if (st) {
    161161    fits_report_error(stderr, st);
     
    272272int FitsInOutFile::CurrentHDU()  const
    273273{
    274   int status = 0;
     274  //unused: int status = 0;
    275275  int curhdu = 0;
    276276  fits_get_hdu_num(FitsPtr() , &curhdu);
     
    496496  int colnum, typecode;
    497497  LONGLONG repeat, colw;   // $CHECK$ LONGLONG ???
    498   int ncols = 0;
     498  //unused: int ncols = 0;
    499499  char colname[128];  // longueur max d'un nom de colonne
    500500
    501501  while (status != COL_NOT_FOUND) {
    502     fits_get_colname(FitsPtr(), CASEINSEN, "*", colname, &colnum, &status);
     502    char dum[2]  = {'*','\0'};
     503    fits_get_colname(FitsPtr(), CASEINSEN, dum, colname, &colnum, &status);
    503504    if (status == COL_NOT_FOUND)  break;
    504505    if ( (status != COL_NOT_UNIQUE) && (status != 0) ) {
     
    665666
    666667  CheckFitsPtr(FitsPtr());
    667   int status = 0;
     668  //unused: int status = 0;
    668669  DVList::ValList::const_iterator it;
    669670  for(it = dvl.Begin(); it != dvl.End(); it++) 
Note: See TracChangeset for help on using the changeset viewer.