Internals: Fix unused variables (#7539)
This commit is contained in:
parent
a2874b324a
commit
227812ecce
|
|
@ -137,6 +137,7 @@ void VerilatedFst::declDTypeEnum(int dtypenum, const char* name, uint32_t elemen
|
|||
= fstWriterCreateEnumTable(m_fst, name, elements, minValbits, itemNamesp, itemValuesp);
|
||||
const bool newEntry = m_local2fstdtype[initUserp()].emplace(dtypenum, enumNum).second;
|
||||
assert(newEntry);
|
||||
(void)newEntry; // Prevent unused variable warning when asserts are disabled
|
||||
}
|
||||
|
||||
void VerilatedFst::pushPrefix(const char* namep, VerilatedTracePrefixType type, int left,
|
||||
|
|
|
|||
|
|
@ -327,7 +327,6 @@ void VerilatedTrace<VL_SUB_T, VL_BUF_T>::dump(uint64_t timeui) VL_MT_SAFE_EXCLUD
|
|||
if (!preChangeDump()) return;
|
||||
}
|
||||
|
||||
uint32_t* bufferp = nullptr;
|
||||
// Update time point
|
||||
emitTimeChange(timeui);
|
||||
|
||||
|
|
@ -355,7 +354,6 @@ void VerilatedTrace<VL_SUB_T, VL_BUF_T>::addModel(VerilatedModel* modelp)
|
|||
VL_MT_SAFE_EXCLUDES(m_mutex) {
|
||||
const VerilatedLockGuard lock{m_mutex};
|
||||
|
||||
const bool firstModel = m_models.empty();
|
||||
const bool newModel = m_models.insert(modelp).second;
|
||||
VerilatedContext* const contextp = modelp->contextp();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue