From b91940441263f1f2ad218fe3e8ede1710948d3a5 Mon Sep 17 00:00:00 2001 From: link2026 Date: Mon, 8 Jun 2026 21:29:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(MNN):=20=E6=8A=91=E5=88=B6=20MNN=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E5=A4=B4=E7=9A=84=20-Wdocumentation?= =?UTF-8?q?=20=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MNN 公共头(Executor/Tensor/Interpreter/ImageProcess.hpp)文档注释不规范, 桥接 #include 时触发 13 条 -Wdocumentation 警告。 用 #pragma clang diagnostic 只在解析 MNN 头时关掉,不影响本项目自身文档警告。 device BUILD SUCCEEDED,警告 0。 Co-Authored-By: Claude Opus 4.8 (1M context) --- 康康/AI/MNN/MNNLLMBridge.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/康康/AI/MNN/MNNLLMBridge.mm b/康康/AI/MNN/MNNLLMBridge.mm index ca089fb..85aef8a 100644 --- a/康康/AI/MNN/MNNLLMBridge.mm +++ b/康康/AI/MNN/MNNLLMBridge.mm @@ -53,7 +53,12 @@ static BOOL kk_sysctlFlag(const char *name) { #else // ============ 真机:真实 MNN-LLM ============ +// MNN 第三方头文件的文档注释不规范,会触发一堆 -Wdocumentation 警告(Executor/ +// Tensor/Interpreter/ImageProcess.hpp)。只在解析 MNN 头时关掉该警告,不影响本项目。 +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdocumentation" #include +#pragma clang diagnostic pop #include #include #include