muffle `unused variable' warnings

This commit is contained in:
rlar 2010-07-24 18:24:43 +00:00
parent fe696310d6
commit d0a7220f6f
6 changed files with 12 additions and 6 deletions

View File

@ -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

View File

@ -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)) {

View File

@ -17,7 +17,6 @@ NDEVparam(
GENinstance *inInst,
IFvalue *select )
{
NDEVinstance *inst = (NDEVinstance *) inInst;
switch (param) {
case NDEV_MOD_NDEV:
/* no action , but this */

View File

@ -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 */

View File

@ -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 */

View File

@ -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;