Ignore:
Timestamp:
Jul 25, 2009 4:39:55 AM (10 years ago)
Author:
forrest
Message:

get rid of compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/unitTest.cpp

    r1370 r1402  
    15871587      char temp[100];
    15881588      // read and skip
    1589       fscanf(fp,"%s",temp);
     1589      int x=fscanf(fp,"%s",temp);
     1590      if (x<0)
     1591        throw("bad fscanf");
    15901592      assert (!strcmp(temp,"BEGIN"));
    1591       fscanf(fp,"%*s %*s %d %d %*s %*s %d %*s",&problem, &numberRows,
     1593      x=fscanf(fp,"%*s %*s %d %d %*s %*s %d %*s",&problem, &numberRows,
    15921594             &numberColumns);
     1595      if (x<0)
     1596        throw("bad fscanf");
    15931597      // scan down to SUPPLY
    15941598      while (fgets(temp,100,fp)) {
     
    19731977      std::string topName="row_master";
    19741978      std::string blockName="block_";
    1975       char bName = 'a'+static_cast<char>(i);
     1979      char bName = static_cast<char>('a'+static_cast<char>(i));
    19761980      blockName.append(1,bName);
    19771981      structured.addBlock(topName,blockName,top);
     
    19992003    for (int i=0;i<numberBlocks;i++) {
    20002004      std::string blockName="block_";
    2001       char bName = 'a'+static_cast<char>(i);
     2005      char bName = static_cast<char>('a'+static_cast<char>(i));
    20022006      blockName.append(1,bName);
    20032007      structured2.addBlock(blockName,blockName,structured);
Note: See TracChangeset for help on using the changeset viewer.