Suppress model type warning when device is of type N.

This commit is contained in:
Holger Vogt 2022-11-12 22:37:42 +01:00 committed by Pascal Kuthe
parent 93ca8c5ffe
commit 8900ecfc27
No known key found for this signature in database
GPG Key ID: D715E8655AE166A6
1 changed files with 3 additions and 2 deletions

View File

@ -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",