From 6f678294a00a28aa95ec4bc8d5f27c4222ddd811 Mon Sep 17 00:00:00 2001 From: luoliwoshang <2643523683@qq.com> Date: Tue, 2 Jul 2024 11:29:30 +0800 Subject: [PATCH] link:not exist method warning --- cl/import.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl/import.go b/cl/import.go index 938d74bf..a4996790 100644 --- a/cl/import.go +++ b/cl/import.go @@ -270,7 +270,7 @@ func (p *context) initLink(line string, prefix int, f func(inPkgName string) (fu } else { panic(line + ": no specified call convention. eg. //go:linkname Printf C.printf") } - } else if c := inPkgName[0]; c >= 'A' && c <= 'Z' { + } else { fmt.Fprintln(os.Stderr, "==>", line) fmt.Fprintf(os.Stderr, "llgo: linkname %s not found and ignored\n", inPkgName) }