ext2sim: cleanup unused localvars -Wunused-variable -Wunused-but-set-variable
This commit is contained in:
parent
7028fbe546
commit
d5341659fb
|
|
@ -258,7 +258,6 @@ CmdExtToSim(
|
||||||
{
|
{
|
||||||
int i,flatFlags;
|
int i,flatFlags;
|
||||||
const char *inName;
|
const char *inName;
|
||||||
FILE *f;
|
|
||||||
|
|
||||||
int value;
|
int value;
|
||||||
int option = EXTTOSIM_RUN;
|
int option = EXTTOSIM_RUN;
|
||||||
|
|
@ -1792,8 +1791,6 @@ simmergeVisit(
|
||||||
ClientData cdata) /* unused */
|
ClientData cdata) /* unused */
|
||||||
{
|
{
|
||||||
const DevTerm *gate, *source, *drain;
|
const DevTerm *gate, *source, *drain;
|
||||||
Dev *cf;
|
|
||||||
const DevTerm *cg, *cs, *cd;
|
|
||||||
const EFNode *subnode, *snode, *dnode, *gnode;
|
const EFNode *subnode, *snode, *dnode, *gnode;
|
||||||
int pmode, l, w;
|
int pmode, l, w;
|
||||||
float m;
|
float m;
|
||||||
|
|
@ -1828,17 +1825,18 @@ simmergeVisit(
|
||||||
|
|
||||||
for (cfp = devMergeList; cfp != NULL; cfp = cfp->next) {
|
for (cfp = devMergeList; cfp != NULL; cfp = cfp->next) {
|
||||||
if ((pmode = parallelDevs(fp, cfp)) != NOT_PARALLEL) {
|
if ((pmode = parallelDevs(fp, cfp)) != NOT_PARALLEL) {
|
||||||
|
#if 0 /* -Wunused-but-set-variable cf, cs, cg */
|
||||||
cf = cfp->dev;
|
Dev *cf = cfp->dev;
|
||||||
cg = &cfp->dev->dev_terms[0];
|
DevTerm *cg = &cfp->dev->dev_terms[0];
|
||||||
cs = cd = &cfp->dev->dev_terms[1];
|
DevTerm *cs = &cfp->dev->dev_terms[1];
|
||||||
|
DevTerm *cd = cs;
|
||||||
if (cfp->dev->dev_nterm >= 3) {
|
if (cfp->dev->dev_nterm >= 3) {
|
||||||
if (pmode == PARALLEL)
|
if (pmode == PARALLEL)
|
||||||
cd = &cfp->dev->dev_terms[2];
|
cd = &cfp->dev->dev_terms[2];
|
||||||
else if (pmode == PARALLEL_R)
|
else if (pmode == PARALLEL_R)
|
||||||
cs = &cfp->dev->dev_terms[2];
|
cs = &cfp->dev->dev_terms[2];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
m = esFMult[cfp->esFMIndex] + ((float)fp->w/(float)cfp->w);
|
m = esFMult[cfp->esFMIndex] + ((float)fp->w/(float)cfp->w);
|
||||||
setDevMult(fp->esFMIndex, DEV_KILLED);
|
setDevMult(fp->esFMIndex, DEV_KILLED);
|
||||||
setDevMult(cfp->esFMIndex, m);
|
setDevMult(cfp->esFMIndex, m);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue