From e82d2db388ab2ecfe71b9ffffad78871d9edb0c8 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 22 Feb 2024 00:04:23 +0100 Subject: [PATCH] libtopology/./topology_graph.cpp|298 col 31| warning: catching polymorphic type 'class std::runtime_error' by value [-Wcatch-value=] || 298 | } catch(runtime_error e) { || | ^ --- cola/libtopology/topology_graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cola/libtopology/topology_graph.cpp b/cola/libtopology/topology_graph.cpp index e6dc13ac..7c459251 100644 --- a/cola/libtopology/topology_graph.cpp +++ b/cola/libtopology/topology_graph.cpp @@ -295,7 +295,7 @@ bool EdgePoint::assertConvexBend() const { COLA_ASSERT(false); } } - } catch(runtime_error e) { + } catch(runtime_error & e) { printf(" convexity bend point test failed: %s, dx=%f, dy=%f, cp=%f:\n",e.what(),dx,dy,cp); printf(" (nid=%d,ri=%d):u={%f,%f}\n", u->node->id,u->rectIntersect,u->posX(),u->posY());