Browse Source

Suppress model type warning when device is of type N.

pre-master-46
Holger Vogt 3 years ago
parent
commit
a4d13dae24
  1. 5
      src/frontend/inpcom.c

5
src/frontend/inpcom.c

@ -10020,7 +10020,8 @@ static char inp_get_elem_ident(char *type)
return 'm';
if (cieq(type, "res"))
return 'r';
/* xspice code models do not have unique type names */
/* xspice code models do not have unique type names,
but could also be a OpenVAF model. */
else
return 'a';
}
@ -10303,7 +10304,7 @@ void inp_rem_unused_models(struct nscope *root, struct card *deck)
struct modellist *m =
inp_find_model(card->level, elem_model_name);
if (m) {
if (*curr_line != m->elemb)
if (*curr_line != m->elemb && *curr_line != 'n')
fprintf(stderr,
"warning, model type mismatch in line\n "
"%s\n",

Loading…
Cancel
Save