From 4e86cfa352cfe76523850b1bdbfceb1187dfe039 Mon Sep 17 00:00:00 2001 From: dwarning Date: Thu, 15 Apr 2021 21:07:24 +0200 Subject: [PATCH] diode cbv only needed for tracing - prevent compiler warning --- src/spicelib/devices/dio/diotemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spicelib/devices/dio/diotemp.c b/src/spicelib/devices/dio/diotemp.c index 490d49700..a09f7d079 100644 --- a/src/spicelib/devices/dio/diotemp.c +++ b/src/spicelib/devices/dio/diotemp.c @@ -197,8 +197,8 @@ void DIOtempUpdate(DIOmodel *inModel, DIOinstance *here, double Temp, CKTcircuit cbv = here->DIOm * model->DIObreakdownCurrent * here->DIOarea; } if (cbv < here->DIOtSatCur * tBreakdownVoltage/vt) { - cbv=here->DIOtSatCur * tBreakdownVoltage/vt; #ifdef TRACE + cbv=here->DIOtSatCur * tBreakdownVoltage/vt; SPfrontEnd->IFerrorf (ERR_WARNING, "%s: breakdown current increased to %g to resolve", here->DIOname, cbv); SPfrontEnd->IFerrorf (ERR_WARNING, "incompatibility with specified saturation current");