From 2a3fbc12854053ef20113121c61e0aed246f7881 Mon Sep 17 00:00:00 2001
From: Simon Praetorius <simon.praetorius@tu-dresden.de>
Date: Thu, 19 Jul 2018 15:00:26 +0200
Subject: [PATCH] warning: catch exception by value, removed

---
 src/amdis/linear_algebra/mtl/itl/fgmres.hpp             | 2 +-
 src/amdis/linear_algebra/mtl/itl/fgmres_householder.hpp | 2 +-
 src/amdis/linear_algebra/mtl/itl/gmres2.hpp             | 2 +-
 src/amdis/linear_algebra/mtl/itl/gmres_householder.hpp  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/amdis/linear_algebra/mtl/itl/fgmres.hpp b/src/amdis/linear_algebra/mtl/itl/fgmres.hpp
index 7d4fa6fa..101ff799 100644
--- a/src/amdis/linear_algebra/mtl/itl/fgmres.hpp
+++ b/src/amdis/linear_algebra/mtl/itl/fgmres.hpp
@@ -153,7 +153,7 @@ namespace itl
       {
         y[range] = upper_trisolve(H[range][range], s[range]);
       }
-      catch (mtl::matrix_singular)
+      catch (mtl::matrix_singular const&)
       {
         continue;    // if singular then try with sub-matrix
       }
diff --git a/src/amdis/linear_algebra/mtl/itl/fgmres_householder.hpp b/src/amdis/linear_algebra/mtl/itl/fgmres_householder.hpp
index 6668e7da..2609cda1 100644
--- a/src/amdis/linear_algebra/mtl/itl/fgmres_householder.hpp
+++ b/src/amdis/linear_algebra/mtl/itl/fgmres_householder.hpp
@@ -166,7 +166,7 @@ namespace itl
       {
         y[range] = upper_trisolve(H[range][range], s[range]);
       }
-      catch (mtl::matrix_singular)
+      catch (mtl::matrix_singular const&)
       {
         continue;    // if singular then try with sub-matrix
       }
diff --git a/src/amdis/linear_algebra/mtl/itl/gmres2.hpp b/src/amdis/linear_algebra/mtl/itl/gmres2.hpp
index cf78af92..e4180602 100644
--- a/src/amdis/linear_algebra/mtl/itl/gmres2.hpp
+++ b/src/amdis/linear_algebra/mtl/itl/gmres2.hpp
@@ -154,7 +154,7 @@ namespace itl
       {
         y[range] = upper_trisolve(H[range][range], s[range]);
       }
-      catch (mtl::matrix_singular)
+      catch (mtl::matrix_singular const&)
       {
         continue;    // if singular then try with sub-matrix
       }
diff --git a/src/amdis/linear_algebra/mtl/itl/gmres_householder.hpp b/src/amdis/linear_algebra/mtl/itl/gmres_householder.hpp
index fdb18a87..c8bdb836 100644
--- a/src/amdis/linear_algebra/mtl/itl/gmres_householder.hpp
+++ b/src/amdis/linear_algebra/mtl/itl/gmres_householder.hpp
@@ -162,7 +162,7 @@ namespace itl
       {
         y[range] = upper_trisolve(H[range][range], s[range]);
       }
-      catch (mtl::matrix_singular)
+      catch (mtl::matrix_singular const&)
       {
         continue;    // if singular then try with sub-matrix
       }
-- 
GitLab