Browse Source

muffle `unused variable' warnings

pre-master-46
rlar 16 years ago
parent
commit
d0a7220f6f
  1. 8
      ChangeLog
  2. 3
      src/frontend/inpcom.c
  3. 1
      src/spicelib/devices/ndev/ndevparm.c
  4. 2
      src/spicelib/parser/inp2n.c
  5. 2
      src/spicelib/parser/inppas2.c
  6. 2
      src/xspice/cm/cmevt.c

8
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 2010-07-24 Robert Larice
* src/frontend/plotting/x11.c : * src/frontend/plotting/x11.c :
muffle `may be used uninitialized' warnings muffle `may be used uninitialized' warnings

3
src/frontend/inpcom.c

@ -175,10 +175,11 @@ FILE *
inp_pathopen(char *name, char *mode) inp_pathopen(char *name, char *mode)
{ {
FILE *fp; FILE *fp;
char buf[BSIZE_SP], buf2[BSIZE_SP];
char buf[BSIZE_SP];
struct variable *v; struct variable *v;
#if defined(HAS_WINDOWS) #if defined(HAS_WINDOWS)
char buf2[BSIZE_SP];
/* search in the path where the source (input) file has been found, /* search in the path where the source (input) file has been found,
but only if "name" is just a file name */ but only if "name" is just a file name */
if (!(index(name, DIR_TERM)) && cp_getvar("sourcefile", CP_STRING, buf2)) { if (!(index(name, DIR_TERM)) && cp_getvar("sourcefile", CP_STRING, buf2)) {

1
src/spicelib/devices/ndev/ndevparm.c

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

2
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 */ void *node[7]; /* the array of CKT node's node pointer */
int error; /* error code temporary */ int error; /* error code temporary */
int error1; /* secondary error code temporary */
int i; int i;
INPmodel *thismodel; /* pointer to model structure describing our model */ INPmodel *thismodel; /* pointer to model structure describing our model */
GENmodel *mdfast = NULL; /* pointer to the actual model */ GENmodel *mdfast = NULL; /* pointer to the actual model */
GENinstance *fast; /* pointer to the actual instance */ GENinstance *fast; /* pointer to the actual instance */
NDEVinstance *pinst; NDEVinstance *pinst;
IFvalue ptemp; /* a value structure to package resistance into */
int waslead; /* flag to indicate that funny unlabeled number was found */ int waslead; /* flag to indicate that funny unlabeled number was found */
double leadval; /* actual value of unlabeled number */ double leadval; /* actual value of unlabeled number */

2
src/spicelib/parser/inppas2.c

@ -35,7 +35,9 @@ void INPpas2(CKTcircuit *ckt, card * data, INPtables * tab, void *task)
char *gname; char *gname;
void *gnode; void *gnode;
int error; /* used by the macros defined above */ int error; /* used by the macros defined above */
#ifdef HAS_WINDOWS
int linecount = 0, actcount = 0; int linecount = 0, actcount = 0;
#endif
#ifdef TRACE #ifdef TRACE
/* SDB debug statement */ /* SDB debug statement */

2
src/xspice/cm/cmevt.c

@ -72,8 +72,6 @@ void cm_event_alloc(
MIFinstance *here; MIFinstance *here;
CKTcircuit *ckt; CKTcircuit *ckt;
void *ptr;
Evt_State_Desc_t **desc_ptr; Evt_State_Desc_t **desc_ptr;
Evt_State_Desc_t *desc; Evt_State_Desc_t *desc;

Loading…
Cancel
Save