diff --git a/ChangeLog b/ChangeLog index 5eb275338..671e342a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-07-24 Robert Larice + * src/frontend/inpcom.c , + * src/spicelib/devices/ndev/ndevparm.c , + * src/spicelib/parser/inp2n.c , + * src/spicelib/parser/inppas2.c , + * src/xspice/cm/cmevt.c : + muffle `unused variable' warnings + 2010-07-24 Robert Larice * src/frontend/plotting/x11.c : muffle `may be used uninitialized' warnings diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index b415fb9df..75b327070 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -175,10 +175,11 @@ FILE * inp_pathopen(char *name, char *mode) { FILE *fp; - char buf[BSIZE_SP], buf2[BSIZE_SP]; + char buf[BSIZE_SP]; struct variable *v; #if defined(HAS_WINDOWS) + char buf2[BSIZE_SP]; /* search in the path where the source (input) file has been found, but only if "name" is just a file name */ if (!(index(name, DIR_TERM)) && cp_getvar("sourcefile", CP_STRING, buf2)) { diff --git a/src/spicelib/devices/ndev/ndevparm.c b/src/spicelib/devices/ndev/ndevparm.c index c613f3fa5..173514999 100644 --- a/src/spicelib/devices/ndev/ndevparm.c +++ b/src/spicelib/devices/ndev/ndevparm.c @@ -17,7 +17,6 @@ NDEVparam( GENinstance *inInst, IFvalue *select ) { - NDEVinstance *inst = (NDEVinstance *) inInst; switch (param) { case NDEV_MOD_NDEV: /* no action , but this */ diff --git a/src/spicelib/parser/inp2n.c b/src/spicelib/parser/inp2n.c index 45534775c..800b52d2e 100644 --- a/src/spicelib/parser/inp2n.c +++ b/src/spicelib/parser/inp2n.c @@ -37,13 +37,11 @@ void INP2N(CKTcircuit *ckt, INPtables * tab, card * current) void *node[7]; /* the array of CKT node's node pointer */ int error; /* error code temporary */ - int error1; /* secondary error code temporary */ int i; INPmodel *thismodel; /* pointer to model structure describing our model */ GENmodel *mdfast = NULL; /* pointer to the actual model */ GENinstance *fast; /* pointer to the actual instance */ NDEVinstance *pinst; - IFvalue ptemp; /* a value structure to package resistance into */ int waslead; /* flag to indicate that funny unlabeled number was found */ double leadval; /* actual value of unlabeled number */ diff --git a/src/spicelib/parser/inppas2.c b/src/spicelib/parser/inppas2.c index 40ee4e29c..238737e74 100644 --- a/src/spicelib/parser/inppas2.c +++ b/src/spicelib/parser/inppas2.c @@ -35,7 +35,9 @@ void INPpas2(CKTcircuit *ckt, card * data, INPtables * tab, void *task) char *gname; void *gnode; int error; /* used by the macros defined above */ +#ifdef HAS_WINDOWS int linecount = 0, actcount = 0; +#endif #ifdef TRACE /* SDB debug statement */ diff --git a/src/xspice/cm/cmevt.c b/src/xspice/cm/cmevt.c index dad879e1a..d21c724e0 100755 --- a/src/xspice/cm/cmevt.c +++ b/src/xspice/cm/cmevt.c @@ -72,8 +72,6 @@ void cm_event_alloc( MIFinstance *here; CKTcircuit *ckt; - void *ptr; - Evt_State_Desc_t **desc_ptr; Evt_State_Desc_t *desc;