diff --git a/ChangeLog b/ChangeLog index 754bbb00c..33de9e718 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-04-30 Robert Larice + * src/spicelib/devices/cktbindnode.c , + * src/spicelib/devices/hisimhv/hsmhvmask.c , + * src/spicelib/devices/hisimhv/hsmhvpzld.c : + c89 compatibility, move NG_IGNORE() after declarations + 2011-04-30 Robert Larice * src/spicelib/devices/hisimhv/hsmhvask.c , * src/spicelib/devices/hisimhv/hsmhvld.c , diff --git a/src/spicelib/devices/cktbindnode.c b/src/spicelib/devices/cktbindnode.c index d5f55bbee..69dce6b37 100644 --- a/src/spicelib/devices/cktbindnode.c +++ b/src/spicelib/devices/cktbindnode.c @@ -19,13 +19,13 @@ Author: 1985 Thomas L. Quarles int CKTbindNode(CKTcircuit *ckt, GENinstance *fast, int term, CKTnode *node) { - NG_IGNORE(ckt); - int mappednode; SPICEdev **devs; GENinstance *instance = /*fixme*/ fast; int type = instance->GENmodPtr->GENmodType; + NG_IGNORE(ckt); + devs = devices(); mappednode = node->number; diff --git a/src/spicelib/devices/hisimhv/hsmhvmask.c b/src/spicelib/devices/hisimhv/hsmhvmask.c index 3054c1a02..db7888f4a 100644 --- a/src/spicelib/devices/hisimhv/hsmhvmask.c +++ b/src/spicelib/devices/hisimhv/hsmhvmask.c @@ -30,10 +30,10 @@ int HSMHVmAsk( int which, IFvalue *value) { - NG_IGNORE(ckt); - HSMHVmodel *model = (HSMHVmodel *)inst; + NG_IGNORE(ckt); + switch (which) { case HSMHV_MOD_NMOS: value->iValue = model->HSMHV_type; diff --git a/src/spicelib/devices/hisimhv/hsmhvpzld.c b/src/spicelib/devices/hisimhv/hsmhvpzld.c index 0fbd57a71..c77f01460 100644 --- a/src/spicelib/devices/hisimhv/hsmhvpzld.c +++ b/src/spicelib/devices/hisimhv/hsmhvpzld.c @@ -28,13 +28,13 @@ int HSMHVpzLoad( register CKTcircuit *ckt, register SPcomplex *s) { - NG_IGNORE(ckt); - register HSMHVmodel *model = (HSMHVmodel*)inModel; register HSMHVinstance *here; int flg_nqs =0 ; + NG_IGNORE(ckt); + #define dNode 0 #define dNodePrime 1 #define gNode 2