COIN-OR::LEMON - Graph Library

Ticket #609: 609-ad22262328b3.patch

File 609-ad22262328b3.patch, 969 bytes (added by Peter Kovacs, 7 years ago)
  • tools/dimacs-solver.cc

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1521740816 -3600
    #      Thu Mar 22 18:46:56 2018 +0100
    # Node ID ad22262328b3fbdec2b41f70fa65a65b9ccf752b
    # Parent  fb1c7da561ceb5fff691bba109ad95b079780845
    Add missing break statement to dimacs-solver (#609)
    
    diff --git a/tools/dimacs-solver.cc b/tools/dimacs-solver.cc
    a b  
    222222      if (!output) {
    223223        throw IoError("Cannot open the file for writing", ap.files()[1]);
    224224      }
     225      // fall through
    225226    case 1:
    226227      input.open(ap.files()[0].c_str());
    227228      if (!input) {
    228229        throw IoError("File cannot be found", ap.files()[0]);
    229230      }
     231      // fall through
    230232    case 0:
    231233      break;
    232234    default:
     
    251253          break;
    252254        case DimacsDescriptor::SP:
    253255          std::cout << "sp";
     256          break;
    254257        case DimacsDescriptor::MAT:
    255258          std::cout << "mat";
    256259          break;