Fix cppcheck warnings. No functional change.
This commit is contained in:
parent
49fe4d081c
commit
f98940e40a
|
|
@ -158,6 +158,7 @@ void svPutPartselBit(svBitVecVal* dp, const svBitVecVal s, int lbit, int width)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// cppcheck-suppress passedByValue
|
||||||
void svPutPartselLogic(svLogicVecVal* dp, const svLogicVecVal s, int lbit, int width) {
|
void svPutPartselLogic(svLogicVecVal* dp, const svLogicVecVal s, int lbit, int width) {
|
||||||
int hbit = lbit+width-1;
|
int hbit = lbit+width-1;
|
||||||
int hoffset = VL_BITBIT_I(hbit);
|
int hoffset = VL_BITBIT_I(hbit);
|
||||||
|
|
@ -487,7 +488,6 @@ void* svGetArrElemPtr3(const svOpenArrayHandle h, int indx1, int indx2, int indx
|
||||||
void svPutBitArrElemVecVal(const svOpenArrayHandle d, const svBitVecVal* s,
|
void svPutBitArrElemVecVal(const svOpenArrayHandle d, const svBitVecVal* s,
|
||||||
int indx1, ...) {
|
int indx1, ...) {
|
||||||
const VerilatedDpiOpenVar* varp = _vl_openhandle_varp(d);
|
const VerilatedDpiOpenVar* varp = _vl_openhandle_varp(d);
|
||||||
void* datap;
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, indx1);
|
va_start(ap, indx1);
|
||||||
switch (varp->udims()) {
|
switch (varp->udims()) {
|
||||||
|
|
|
||||||
|
|
@ -67,10 +67,10 @@ static inline void VL_SET_SVLV_W(int obits, svLogicVecVal* owp, WDataInP lwp) VL
|
||||||
for (int i=0; i<words-1; ++i) owp[i].aval=lwp[i];
|
for (int i=0; i<words-1; ++i) owp[i].aval=lwp[i];
|
||||||
owp[words-1].aval = lwp[words-1] & VL_MASK_I(obits);
|
owp[words-1].aval = lwp[words-1] & VL_MASK_I(obits);
|
||||||
}
|
}
|
||||||
static inline void VL_SET_SVLV_I(int obits, svLogicVecVal* owp, IData ld) VL_MT_SAFE {
|
static inline void VL_SET_SVLV_I(int, svLogicVecVal* owp, IData ld) VL_MT_SAFE {
|
||||||
owp[0].aval=ld; owp[0].bval=0;
|
owp[0].aval=ld; owp[0].bval=0;
|
||||||
}
|
}
|
||||||
static inline void VL_SET_SVLV_Q(int obits, svLogicVecVal* owp, QData ld) VL_MT_SAFE {
|
static inline void VL_SET_SVLV_Q(int, svLogicVecVal* owp, QData ld) VL_MT_SAFE {
|
||||||
WData lwp[2]; VL_SET_WQ(lwp,ld);
|
WData lwp[2]; VL_SET_WQ(lwp,ld);
|
||||||
owp[0].aval=lwp[0]; owp[0].bval=0;
|
owp[0].aval=lwp[0]; owp[0].bval=0;
|
||||||
owp[1].aval=lwp[1]; owp[1].bval=0;
|
owp[1].aval=lwp[1]; owp[1].bval=0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue