Suppress model type warning when device is of type N.
This commit is contained in:
parent
a732faf640
commit
a4d13dae24
|
|
@ -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…
Reference in New Issue