Minor cleanups (#237)

* In Sta::makeExceptionTo make end_rf const

Signed-off-by: Matt Liberty <mliberty@precisioninno.com>

* In TagGroup::pathIndex quiet compiler warning about possibly uninit value

Signed-off-by: Matt Liberty <mliberty@precisioninno.com>

---------

Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
This commit is contained in:
Matt Liberty 2025-04-17 23:51:49 +00:00 committed by GitHub
parent 98c04dbb71
commit 1329b9c55a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -542,7 +542,7 @@ public:
ClockSet *to_clks,
InstanceSet *to_insts,
const RiseFallBoth *rf,
RiseFallBoth *end_rf);
const RiseFallBoth *end_rf);
void checkExceptionToPins(ExceptionTo *to,
const char *file, int) const;
void deleteExceptionTo(ExceptionTo *to);

View File

@ -2073,7 +2073,7 @@ Sta::makeExceptionTo(PinSet *to_pins,
ClockSet *to_clks,
InstanceSet *to_insts,
const RiseFallBoth *rf,
RiseFallBoth *end_rf)
const RiseFallBoth *end_rf)
{
return sdc_->makeExceptionTo(to_pins, to_clks, to_insts, rf, end_rf);
}

View File

@ -84,7 +84,7 @@ TagGroup::hasTag(Tag *tag) const
size_t
TagGroup::pathIndex(Tag *tag) const
{
size_t path_index;
size_t path_index = 0;
bool exists;
pathIndex(tag, path_index, exists);
return path_index;