[Lemon-commits] Peter Kovacs: Add missing break statement to dim...

Lemon HG hg at lemon.cs.elte.hu
Fri Mar 23 16:14:07 CET 2018


details:   http://lemon.cs.elte.hu/hg/lemon/rev/ad22262328b3
changeset: 1386:ad22262328b3
user:      Peter Kovacs <kpeter [at] inf.elte.hu>
date:      Thu Mar 22 18:46:56 2018 +0100
description:
	Add missing break statement to dimacs-solver (#609)

diffstat:

 tools/dimacs-solver.cc |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (25 lines):

diff --git a/tools/dimacs-solver.cc b/tools/dimacs-solver.cc
--- a/tools/dimacs-solver.cc
+++ b/tools/dimacs-solver.cc
@@ -222,11 +222,13 @@
       if (!output) {
         throw IoError("Cannot open the file for writing", ap.files()[1]);
       }
+      // fall through
     case 1:
       input.open(ap.files()[0].c_str());
       if (!input) {
         throw IoError("File cannot be found", ap.files()[0]);
       }
+      // fall through
     case 0:
       break;
     default:
@@ -251,6 +253,7 @@
           break;
         case DimacsDescriptor::SP:
           std::cout << "sp";
+          break;
         case DimacsDescriptor::MAT:
           std::cout << "mat";
           break;


More information about the Lemon-commits mailing list