diff --git a/ChangeLog b/ChangeLog index 17aa08fdb..bbb2a012c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-05-22 Robert Larice + * src/spicelib/devices/hisim2/* : + hisim2, use NG_IGNORE() (swallow warnings) + 2011-05-22 Robert Larice * src/spicelib/devices/hisim2/* : hisim2, remove #include "util.h" diff --git a/src/spicelib/devices/hisim2/hsm2ask.c b/src/spicelib/devices/hisim2/hsm2ask.c index 74231d85c..0590f6430 100644 --- a/src/spicelib/devices/hisim2/hsm2ask.c +++ b/src/spicelib/devices/hisim2/hsm2ask.c @@ -31,6 +31,8 @@ int HSM2ask(ckt,inst,which,value,select) { HSM2instance *here = (HSM2instance*)inst; + NG_IGNORE(select); + switch (which) { case HSM2_L: value->rValue = here->HSM2_l; diff --git a/src/spicelib/devices/hisim2/hsm2ld.c b/src/spicelib/devices/hisim2/hsm2ld.c index 0429f7d75..65c432f63 100644 --- a/src/spicelib/devices/hisim2/hsm2ld.c +++ b/src/spicelib/devices/hisim2/hsm2ld.c @@ -73,6 +73,9 @@ static void ShowPhysVals(here,model,isFirst,vds,vgs,vbs,vgd,vbd,vgb) double vgb; #endif { + NG_IGNORE(vgd); + NG_IGNORE(vbd); + /* regard the epsilon-quantity as 0.0 */ vds = (fabs(vds) < SHOW_EPS_QUANT) ? 0.0 : vds; vgs = (fabs(vgs) < SHOW_EPS_QUANT) ? 0.0 : vgs; diff --git a/src/spicelib/devices/hisim2/hsm2mask.c b/src/spicelib/devices/hisim2/hsm2mask.c index dfe849edd..a57241894 100644 --- a/src/spicelib/devices/hisim2/hsm2mask.c +++ b/src/spicelib/devices/hisim2/hsm2mask.c @@ -29,6 +29,9 @@ int HSM2mAsk(ckt,inst,which,value) IFvalue *value; { HSM2model *model = (HSM2model *)inst; + + NG_IGNORE(ckt); + switch (which) { case HSM2_MOD_NMOS: value->iValue = model->HSM2_type; diff --git a/src/spicelib/devices/hisim2/hsm2par.c b/src/spicelib/devices/hisim2/hsm2par.c index 5c2f753c2..40e5c4d10 100644 --- a/src/spicelib/devices/hisim2/hsm2par.c +++ b/src/spicelib/devices/hisim2/hsm2par.c @@ -27,6 +27,9 @@ int HSM2param(param,value,inst,select) IFvalue *select; { HSM2instance *here = (HSM2instance*)inst; + + NG_IGNORE(select); + switch (param) { case HSM2_W: here->HSM2_w = value->rValue; diff --git a/src/spicelib/devices/hisim2/hsm2pzld.c b/src/spicelib/devices/hisim2/hsm2pzld.c index 87df775ae..a9e1b9bf4 100644 --- a/src/spicelib/devices/hisim2/hsm2pzld.c +++ b/src/spicelib/devices/hisim2/hsm2pzld.c @@ -41,6 +41,8 @@ int HSM2pzLoad(inModel,ckt,s) double gIdtotg, gIdtotd, gIdtots, gIdtotb; double gIstotg, gIstotd, gIstots, gIstotb; + NG_IGNORE(ckt); + for ( ;model != NULL ;model = model->HSM2nextModel ) { for ( here = model->HSM2instances ;here!= NULL ; here = here->HSM2nextInstance ) {