Blob Blame History Raw
diff -up Clp-releases-1.17.9/Clp/src/ClpSolver.cpp.orig Clp-releases-1.17.9/Clp/src/ClpSolver.cpp
--- Clp-releases-1.17.9/Clp/src/ClpSolver.cpp.orig	2023-10-27 06:57:50.869164283 -0600
+++ Clp-releases-1.17.9/Clp/src/ClpSolver.cpp	2023-10-27 06:58:31.230571780 -0600
@@ -1293,7 +1293,7 @@ int ClpMain1(int argc, const char *argv[
                 }
               }
 #endif
-            } catch (CoinError e) {
+            } catch (CoinError& e) {
               e.print();
               status = -1;
             }
diff -up Clp-releases-1.17.9/Clp/test/OsiClpSolverInterfaceTest.cpp.orig Clp-releases-1.17.9/Clp/test/OsiClpSolverInterfaceTest.cpp
--- Clp-releases-1.17.9/Clp/test/OsiClpSolverInterfaceTest.cpp.orig	2023-10-25 09:41:55.000000000 -0600
+++ Clp-releases-1.17.9/Clp/test/OsiClpSolverInterfaceTest.cpp	2023-10-27 06:58:31.232571750 -0600
@@ -143,7 +143,7 @@ OsiClpSolverInterfaceUnitTest(const std:
         solver.setObjCoeff(0,0.0);
         OSIUNITTEST_ADD_OUTCOME("clp", "setObjCoeff on empty model", "should throw exception", OsiUnitTest::TestOutcome::ERROR, false);
       }
-      catch (CoinError e) {
+      catch (CoinError& e) {
         if (OsiUnitTest::verbosity >= 1)
           std::cout<<"Correct throw from setObjCoeff on empty model"<<std::endl;
       }
@@ -158,7 +158,7 @@ OsiClpSolverInterfaceUnitTest(const std:
         solver.setColSetBounds(index,index+2,value);
         OSIUNITTEST_ADD_OUTCOME("clp", "setColSetBounds on cols not in model", "should throw exception", OsiUnitTest::TestOutcome::ERROR, false);
       }
-      catch (CoinError e) {
+      catch (CoinError& e) {
         if (OsiUnitTest::verbosity >= 1)
           std::cout<<"Correct throw from setObjCoeff on empty model"<<std::endl;
       }