Changeset 1790 for trunk


Ignore:
Timestamp:
09/12/11 15:13:41 (6 months ago)
Author:
Freddie Akeroyd
Message:

Fix some warnings. Refs #286

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/applications/NXbrowse/NXbrowse.c

    r1784 r1790  
    769769   char *dataPtr; 
    770770   int i, dimSize, dataSize, lineSize; 
    771    int type_size = 0; 
    772771 
    773772   if (rank > 1) { /* Recursively call DumpData until rank = 1 */ 
  • trunk/applications/NXconvert/nxconvert_common.cpp

    r1784 r1790  
    107107int convert_file(int nx_format, const char* inFile, int nx_read_access, const char* outFile, int nx_write_access, const char* definition_name_) 
    108108{ 
    109    int i, nx_is_definition = 0; 
     109   int nx_is_definition = 0; 
    110110   if (definition_name_ != NULL && definition_name_[0] == '\0') { 
    111111     definition_name = NULL; 
     
    153153   { 
    154154/* now create any required links */ 
    155        for(i=0; i<links_to_make.size(); i++) 
     155       for(size_t i=0; i<links_to_make.size(); i++) 
    156156       { 
    157157            if (NXopenpath(outId, links_to_make[i].to) != NX_OK) return NX_ERROR; 
  • trunk/bindings/cpp/NeXusFile.cpp

    r1774 r1790  
    139139  int rank = dims.size(); 
    140140  int64_t c_dims[NX_MAXRANK]; 
    141   for (size_t i = 0; i < rank; i++) { 
     141  for (int i = 0; i < rank; i++) { 
    142142    c_dims[i] = dims[i]; 
    143143  } 
     
    10181018    throw Exception(msg.str()); 
    10191019  } 
    1020  
    1021   int rank = start.size(); 
    10221020 
    10231021  NXstatus status = NXgetslab64(this->m_file_id, data, &(start[0]), &(size[0])); 
     
    10711069  } 
    10721070  // char attributes are always NULL terminated and so may change length 
    1073   if (length != info.length && type != NX_CHAR) { 
     1071  if (static_cast<unsigned>(length) != info.length && type != NX_CHAR) { 
    10741072    stringstream msg; 
    10751073    msg << "NXgetattr(" << info.name << ") change length [" << info.length 
  • trunk/src/napi5.c

    r1786 r1790  
    11791179  hid_t  dataID, aid2, aid1, attID; 
    11801180  herr_t status; 
    1181   int type = NX_CHAR; 
    11821181  char name[] = "target"; 
    11831182 
     
    12301229    pNexusFile5 pFile; 
    12311230    char        linkTarget[1024]; 
    1232     int         type = NX_CHAR; 
    1233     hid_t       targetid; 
    12341231 
    12351232    pFile = NXI5assert (fid); 
     
    12671264    pNexusFile5 pFile; 
    12681265    char        linkTarget[1024]; 
    1269     int         type = NX_CHAR; 
    12701266    char        *itemName = NULL; 
    1271     hid_t       targetid; 
    12721267 
    12731268    pFile = NXI5assert (fid); 
     
    14281423static int countObjectsInGroup(hid_t loc_id) 
    14291424{ 
    1430   int count = 0, type; 
     1425  int count = 0; 
    14311426  H5G_info_t numobj; 
    14321427   
Note: See TracChangeset for help on using the changeset viewer.