From a6ada679226f6c004342ee3733b2de9cdc66262b Mon Sep 17 00:00:00 2001 From: jun Date: Sun, 23 Apr 2023 15:34:48 +0800 Subject: [PATCH] =?UTF-8?q?warning=E8=AD=A6=E5=91=8A=E6=8E=92=E9=99=A4depr?= =?UTF-8?q?ecated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用 go test 测试分词时会展示多行 deprecated 的warning信息,新增 CXXFLAGS -Wno-deprecated 可以隐藏相关信息展示,避免干扰正常信息的返回。 --- jieba.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jieba.go b/jieba.go index 80d005a..8078c30 100644 --- a/jieba.go +++ b/jieba.go @@ -1,7 +1,7 @@ package gojieba /* -#cgo CXXFLAGS: -I./deps -DLOGGING_LEVEL=LL_WARNING -O3 -Wall +#cgo CXXFLAGS: -I./deps -DLOGGING_LEVEL=LL_WARNING -O3 -Wall -Wno-deprecated #include #include "jieba.h" */