Browse Source

Removed unused variables to avoid compile warnings

pre-master-46
sjborley 21 years ago
parent
commit
427c3e3b3c
  1. 2
      src/ciderlib/oned/oneadmit.c
  2. 3
      src/ciderlib/oned/oneprint.c
  3. 1
      src/ciderlib/support/suprmitf.c
  4. 2
      src/spicelib/devices/numd/numdask.c
  5. 2
      src/spicelib/devices/numd2/nud2ask.c
  6. 2
      src/spicelib/devices/numd2/nud2load.c
  7. 3
      src/spicelib/devices/numd2/nud2set.c
  8. 3
      src/spicelib/devices/numos/nummset.c

2
src/ciderlib/oned/oneadmit.c

@ -1,6 +1,7 @@
/********** /**********
Copyright 1992 Regents of the University of California. All rights reserved. Copyright 1992 Regents of the University of California. All rights reserved.
Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group
$Id$
**********/ **********/
/* Functions to compute small-signal parameters of 1D devices */ /* Functions to compute small-signal parameters of 1D devices */
@ -661,7 +662,6 @@ computeAdmittance(ONEnode *pNode, BOOLEAN delVContact, double *xReal,
SPcomplex psi, n, p; SPcomplex psi, n, p;
SPcomplex sum, prod1, prod2; SPcomplex sum, prod1, prod2;
/* SPcomplex yAc; */ /* SPcomplex yAc; */
double temp;
int i; int i;

3
src/ciderlib/oned/oneprint.c

@ -2,6 +2,7 @@
Copyright 1992 Regents of the University of California. All rights reserved. Copyright 1992 Regents of the University of California. All rights reserved.
Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group
Author: 1992 David A. Gates, U. C. Berkeley CAD Group Author: 1992 David A. Gates, U. C. Berkeley CAD Group
$Id$
**********/ **********/
#include "ngspice.h" #include "ngspice.h"
@ -326,7 +327,7 @@ void
ONEmemStats(FILE *file, ONEdevice *pDevice) ONEmemStats(FILE *file, ONEdevice *pDevice)
{ {
static char *memFormat = "%-20s%10d%10d\n"; static char *memFormat = "%-20s%10d%10d\n";
static char *sumFormat = "%20s %-10d\n";
/* static char *sumFormat = "%20s %-10d\n";*/
unsigned int size; unsigned int size;
unsigned int memory; unsigned int memory;
ONEmaterial *pMaterial; ONEmaterial *pMaterial;

1
src/ciderlib/support/suprmitf.c

@ -229,7 +229,6 @@ float *x, *conc;
int *impId, *numNod; int *impId, *numNod;
{ {
int idata; int idata;
int ldata;
int i, j; int i, j;
float rdata; float rdata;
char cdata[21]; char cdata[21];

2
src/spicelib/devices/numd/numdask.c

@ -1,6 +1,7 @@
/********** /**********
Copyright 1990 Regents of the University of California. All rights reserved. Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1987 Thomas L. Quarles Author: 1987 Thomas L. Quarles
$Id$
**********/ **********/
#include "ngspice.h" #include "ngspice.h"
@ -27,7 +28,6 @@ NUMDask(ckt, inInst, which, value, select)
IFvalue *select; IFvalue *select;
{ {
NUMDinstance *inst = (NUMDinstance *) inInst; NUMDinstance *inst = (NUMDinstance *) inInst;
SPcomplex yd;
switch (which) { switch (which) {
case NUMD_AREA: case NUMD_AREA:

2
src/spicelib/devices/numd2/nud2ask.c

@ -1,6 +1,7 @@
/********** /**********
Copyright 1990 Regents of the University of California. All rights reserved. Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1987 Thomas L. Quarles Author: 1987 Thomas L. Quarles
$Id$
**********/ **********/
#include "ngspice.h" #include "ngspice.h"
@ -118,4 +119,5 @@ NUMD2ask(ckt, inInst, which, value, select)
return (E_BADPARM); return (E_BADPARM);
} }
/* NOTREACHED */ /* NOTREACHED */
return (E_BADPARM);
} }

2
src/spicelib/devices/numd2/nud2load.c

@ -1,6 +1,7 @@
/********** /**********
Copyright 1992 Regents of the University of California. All rights reserved. Copyright 1992 Regents of the University of California. All rights reserved.
Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group
$Id$
**********/ **********/
/* /*
@ -47,7 +48,6 @@ NUMD2load(inModel, ckt)
double vd; /* current diode voltage */ double vd; /* current diode voltage */
double delVd; double delVd;
int Check; int Check;
int error;
double deltaNorm[7]; double deltaNorm[7];
int devConverged = FALSE; int devConverged = FALSE;
int i; int i;

3
src/spicelib/devices/numd2/nud2set.c

@ -1,6 +1,7 @@
/********** /**********
Copyright 1991 Regents of the University of California. All rights reserved. Copyright 1991 Regents of the University of California. All rights reserved.
Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group
$Id$
**********/ **********/
#include "ngspice.h" #include "ngspice.h"
@ -42,7 +43,7 @@ NUMD2setup(matrix, inModel, ckt, states)
OUTPcard *outputs; OUTPcard *outputs;
char *icFileName = NULL; char *icFileName = NULL;
int nameLen; int nameLen;
int error, xIndex, yIndex;
int error, xIndex;
int xMeshSize, yMeshSize; int xMeshSize, yMeshSize;
TWOdevice *pDevice; TWOdevice *pDevice;
TWOcoord *xCoordList = NIL(TWOcoord); TWOcoord *xCoordList = NIL(TWOcoord);

3
src/spicelib/devices/numos/nummset.c

@ -1,6 +1,7 @@
/********** /**********
Copyright 1991 Regents of the University of California. All rights reserved. Copyright 1991 Regents of the University of California. All rights reserved.
Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group
$Id$
**********/ **********/
#include "ngspice.h" #include "ngspice.h"
@ -42,7 +43,7 @@ NUMOSsetup(matrix, inModel, ckt, states)
OUTPcard *outputs; OUTPcard *outputs;
char *icFileName = NULL; char *icFileName = NULL;
int nameLen; int nameLen;
int error, xIndex, yIndex;
int error, xIndex;
int xMeshSize, yMeshSize; int xMeshSize, yMeshSize;
TWOdevice *pDevice; TWOdevice *pDevice;
TWOcoord *xCoordList = NIL(TWOcoord); TWOcoord *xCoordList = NIL(TWOcoord);

Loading…
Cancel
Save