3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-11 00:23:26 +00:00

silence some warnings

This commit is contained in:
Emily Schmidt 2024-07-25 12:54:58 +01:00
parent fbee31080e
commit 8f77494263
3 changed files with 8 additions and 5 deletions

View file

@ -388,6 +388,8 @@ public:
case DriveType::MULTIPLE:
inner = multiple_.hash();
break;
default:
log_abort();
}
return mkhash((unsigned int)type_, inner);
}
@ -412,7 +414,7 @@ public:
case DriveType::MULTIPLE:
return multiple_ == other.multiple_;
}
log_assert(false);
log_abort();
}
bool operator!=(const DriveBit &other) const
@ -958,7 +960,7 @@ public:
case DriveType::MULTIPLE:
return multiple_ == other.multiple_;
}
log_assert(false);
log_abort();
}
bool operator!=(const DriveChunk &other) const
@ -985,7 +987,7 @@ public:
case DriveType::MULTIPLE:
return multiple_ < other.multiple_;
}
log_assert(false);
log_abort();
}
DriveType type() const { return type_; }