From acb5c45db1ae030e7dfb1fc12703737d36547527 Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Thu, 15 Oct 2020 01:43:53 +0200 Subject: [PATCH] avoid printing erc warnings about missing "name=" attribute in symbols if there is a definition in symbol template string --- src/netlist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/netlist.c b/src/netlist.c index ca0bbc4e..67a7cf4c 100644 --- a/src/netlist.c +++ b/src/netlist.c @@ -673,7 +673,9 @@ void prepare_netlist_structs(int for_netlist) if (xctx.inst[i].ptr<0) continue; my_strdup(248, &type,(xctx.inst[i].ptr+ xctx.sym)->type); - if(print_erc && (!xctx.inst[i].instname || !xctx.inst[i].instname[0]) ) { + if(print_erc && (!xctx.inst[i].instname || !xctx.inst[i].instname[0]) && + !get_tok_value((xctx.inst[i].ptr+ xctx.sym)->templ, "name", 0)[0] + ) { char str[2048]; if( strcmp(type, "package") && strcmp(type, "port_attributes") &&