From 4480c5a9299c5c5c3d27d58e04af69e0ed0175d5 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Thu, 18 Jan 2024 11:26:08 -0800 Subject: [PATCH] gcc warning Signed-off-by: James Cherry --- graph/Graph.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph/Graph.cc b/graph/Graph.cc index 552f7471..2007e610 100644 --- a/graph/Graph.cc +++ b/graph/Graph.cc @@ -106,7 +106,7 @@ public: int &bidirect_count, int &load_count, const Network *network); - virtual void operator()(Pin *pin); + virtual void operator()(const Pin *pin); protected: Pin *drvr_pin_; @@ -133,7 +133,7 @@ FindNetDrvrLoadCounts::FindNetDrvrLoadCounts(Pin *drvr_pin, } void -FindNetDrvrLoadCounts::operator()(Pin *pin) +FindNetDrvrLoadCounts::operator()(const Pin *pin) { if (network_->isDriver(pin)) { if (pin != drvr_pin_)