Browse Source

Code to suppress a spurious warning of a non-existent parameter,

missed from e858ca9465.
pre-master-46
Giles Atkinson 1 year ago
committed by Holger Vogt
parent
commit
027fb7e9e8
  1. 2
      src/xspice/mif/mifgetmod.c

2
src/xspice/mif/mifgetmod.c

@ -198,6 +198,8 @@ char *MIFgetMod(
num_pars = *device->numModelParms; num_pars = *device->numModelParms;
while (*line != '\0') { while (*line != '\0') {
INPgetTok(&line, &parm, 1); INPgetTok(&line, &parm, 1);
if (!parm || !*parm) // May be closing ')'.
break;
for (j = 0; j < num_pars; j++) { for (j = 0; j < num_pars; j++) {
if (strcmp(parm, device->modelParms[j].keyword) == 0) { if (strcmp(parm, device->modelParms[j].keyword) == 0) {
err1 = NULL; err1 = NULL;

Loading…
Cancel
Save