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';
|
return 'm';
|
||||||
if (cieq(type, "res"))
|
if (cieq(type, "res"))
|
||||||
return 'r';
|
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
|
else
|
||||||
return 'a';
|
return 'a';
|
||||||
}
|
}
|
||||||
|
|
@ -10303,7 +10304,7 @@ void inp_rem_unused_models(struct nscope *root, struct card *deck)
|
||||||
struct modellist *m =
|
struct modellist *m =
|
||||||
inp_find_model(card->level, elem_model_name);
|
inp_find_model(card->level, elem_model_name);
|
||||||
if (m) {
|
if (m) {
|
||||||
if (*curr_line != m->elemb)
|
if (*curr_line != m->elemb && *curr_line != 'n')
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"warning, model type mismatch in line\n "
|
"warning, model type mismatch in line\n "
|
||||||
"%s\n",
|
"%s\n",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue