Browse Source

INPparseNumMod(), #8/14, move the 'default:' body out of the 'switch'

this body is inevitable, as there is no other break out of the 'switch'
pre-master-46
rlar 10 years ago
parent
commit
1483e2df9a
  1. 5
      src/spicelib/parser/inpgmod.c

5
src/spicelib/parser/inpgmod.c

@ -381,6 +381,9 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess
default:
lastType = cardType;
// cardType is not used downwards from here
break;
}
if (lastType == E_MISSING) {
/* new command card */
if (cardName) FREE(cardName); /* get rid of old card name */
@ -452,8 +455,6 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess
FREE(parm);
}
}
break;
}
}
*errMessage = err;
return( 0 );

Loading…
Cancel
Save