ranlib: Ignore undefine references - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 69a6dd3cdb185af347d93e03f82e9f303575843f
DIR parent 49ad9073f0ae0db7c459cba3e41dfccaa95c7abe
HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Fri, 8 May 2026 09:54:28 +0200
ranlib: Ignore undefine references
When building an index of symbol definitions undefine
references don't help so much and with the current code
they were generating wrong redefinition errors.
Diffstat:
M src/cmd/scc-ranlib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/src/cmd/scc-ranlib.c b/src/cmd/scc-ranlib.c
@@ -89,7 +89,7 @@ newsymbol(Symbol *sym)
{
Symdef *np;
- if (!isupper(sym->type) || sym->type == 'N')
+ if (!isupper(sym->type) || sym->type == 'N' || sym->type == 'U')
return 1;
if ((np = lookup(sym->name)) == NULL) {