prevent clang error

This commit is contained in:
dwarning 2024-02-16 10:12:09 +01:00
parent fd000c079b
commit 3201bcb09b
9 changed files with 15 additions and 9 deletions

View File

@ -34,6 +34,7 @@ BJTnoise(int mode, int operation, GENmodel*genmodel, CKTcircuit *ckt,
double noizDens[BJTNSRCS];
double lnNdens[BJTNSRCS];
int i;
double dtemp;
/* define the names of the noise sources */
@ -82,7 +83,7 @@ BJTnoise(int mode, int operation, GENmodel*genmodel, CKTcircuit *ckt,
switch (mode) {
case N_DENS:
double dtemp;
if (inst->BJTtempGiven)
dtemp = inst->BJTtemp - ckt->CKTtemp + (model->BJTtnom-CONSTCtoK);
else

View File

@ -35,6 +35,7 @@ DIOnoise(int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt,
double noizDens[DIONSRCS];
double lnNdens[DIONSRCS];
int i;
double dtemp;
/* define the names of the noise sources */
@ -81,7 +82,6 @@ DIOnoise(int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt,
case N_DENS:
double dtemp;
if (inst->DIOtempGiven)
dtemp = inst->DIOtemp - ckt->CKTtemp + (model->DIOnomTemp-CONSTCtoK);
else

View File

@ -35,6 +35,7 @@ HICUMnoise (int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt, Ndata
double noizDens[HICUMNSRCS];
double lnNdens[HICUMNSRCS];
int i;
double dtemp;
double Ibbp_Vbbp;
double Icic_Vcic;
@ -125,7 +126,7 @@ HICUMnoise (int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt, Ndata
switch (mode) {
case N_DENS:
double dtemp;
if (here->HICUMtempGiven)
dtemp = here->HICUMtemp - ckt->CKTtemp + (model->HICUMtnom-CONSTCtoK);
else

View File

@ -34,6 +34,7 @@ JFETnoise(int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt, Ndata *d
double lnNdens[JFETNSRCS];
int i;
double vgs, vds, vgst, alpha, beta;
double dtemp;
/* define the names of the noise sources */
@ -81,7 +82,6 @@ JFETnoise(int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt, Ndata *d
case N_DENS:
double dtemp;
if (inst->JFETtempGiven)
dtemp = inst->JFETtemp - ckt->CKTtemp + (model->JFETtnom-CONSTCtoK);
else

View File

@ -36,6 +36,7 @@ MOS1noise(int mode, int operation, GENmodel * genmodel, CKTcircuit * ckt,
double lnNdens[MOS1NSRCS];
int i;
double vgs, vds, vgd, vgst, alpha, beta, Sid;
double dtemp;
/* define the names of the noise sources */
@ -95,7 +96,7 @@ MOS1noise(int mode, int operation, GENmodel * genmodel, CKTcircuit * ckt,
switch (mode) {
case N_DENS:
double dtemp;
if (inst->MOS1tempGiven)
dtemp = inst->MOS1temp - ckt->CKTtemp + (model->MOS1tnom-CONSTCtoK);
else

View File

@ -35,6 +35,7 @@ MOS2noise(int mode, int operation, GENmodel * genmodel, CKTcircuit * ckt,
double lnNdens[MOS2NSRCS];
int i;
double vgs, vds, vgd, vgst, alpha, beta, Sid;
double dtemp;
/* define the names of the noise sources */
@ -84,7 +85,7 @@ MOS2noise(int mode, int operation, GENmodel * genmodel, CKTcircuit * ckt,
switch (mode) {
case N_DENS:
double dtemp;
if (inst->MOS2tempGiven)
dtemp = inst->MOS2temp - ckt->CKTtemp + (model->MOS2tnom-CONSTCtoK);
else

View File

@ -35,6 +35,7 @@ MOS3noise(int mode, int operation, GENmodel * genmodel, CKTcircuit * ckt,
double lnNdens[MOS3NSRCS];
int i;
double vgs, vds, vgd, vgst, alpha, beta, Sid;
double dtemp;
/* define the names of the noise sources */
@ -84,7 +85,7 @@ MOS3noise(int mode, int operation, GENmodel * genmodel, CKTcircuit * ckt,
switch (mode) {
case N_DENS:
double dtemp;
if (inst->MOS3tempGiven)
dtemp = inst->MOS3temp - ckt->CKTtemp + (model->MOS3tnom-CONSTCtoK);
else

View File

@ -39,6 +39,7 @@ RESnoise(int mode, int operation, GENmodel*genmodel, CKTcircuit *ckt,
double noizDens[RESNSRCS];
double lnNdens[RESNSRCS];
int i;
double dtemp;
/* define the names of the noise sources */
@ -88,7 +89,6 @@ RESnoise(int mode, int operation, GENmodel*genmodel, CKTcircuit *ckt,
case N_DENS:
double dtemp;
if (inst->REStempGiven)
dtemp = inst->REStemp - ckt->CKTtemp + (model->REStnom-CONSTCtoK);
else

View File

@ -36,6 +36,7 @@ VBICnoise (int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt, Ndata *
double noizDens[VBICNSRCS];
double lnNdens[VBICNSRCS];
int i;
double dtemp;
/* define the names of the noise sources */
@ -92,7 +93,7 @@ VBICnoise (int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt, Ndata *
switch (mode) {
case N_DENS:
double dtemp;
if (inst->VBICtempGiven)
dtemp = inst->VBICtemp - ckt->CKTtemp + (model->VBICtnom-CONSTCtoK);
else