Merge pull request #317 from The-OpenROAD-Project-staging/sta_update_test_infra_to_update_sta_OR

fix warnings
This commit is contained in:
Matt Liberty 2026-03-25 21:37:25 +00:00 committed by GitHub
commit 4b78fcb389
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 27 deletions

View File

@ -768,8 +768,7 @@ TEST_F(PowerDesignTest, PowerPerInstance) {
InstanceChildIterator *child_iter = network->childIterator(top);
int count = 0;
while (child_iter->hasNext() && count < 5) {
Instance *inst = child_iter->next();
PowerResult result = sta_->power(inst, corner);
sta_->power(child_iter->next(), corner);
count++;
}
delete child_iter;

View File

@ -35,31 +35,6 @@
namespace sta {
static std::string
readTextFile(const char *filename)
{
std::ifstream in(filename);
if (!in.is_open())
return "";
return std::string((std::istreambuf_iterator<char>(in)),
std::istreambuf_iterator<char>());
}
static size_t
countSubstring(const std::string &text,
const std::string &needle)
{
if (needle.empty())
return 0;
size_t count = 0;
size_t pos = 0;
while ((pos = text.find(needle, pos)) != std::string::npos) {
++count;
pos += needle.size();
}
return count;
}
// RiseFall tests
class RiseFallTest : public ::testing::Test {};