fix(MNN): 抑制 MNN 第三方头的 -Wdocumentation 警告
MNN 公共头(Executor/Tensor/Interpreter/ImageProcess.hpp)文档注释不规范, 桥接 #include <MNN/llm/llm.hpp> 时触发 13 条 -Wdocumentation 警告。 用 #pragma clang diagnostic 只在解析 MNN 头时关掉,不影响本项目自身文档警告。 device BUILD SUCCEEDED,警告 0。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,12 @@ static BOOL kk_sysctlFlag(const char *name) {
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
// ============ 真机:真实 MNN-LLM ============
|
// ============ 真机:真实 MNN-LLM ============
|
||||||
|
// MNN 第三方头文件的文档注释不规范,会触发一堆 -Wdocumentation 警告(Executor/
|
||||||
|
// Tensor/Interpreter/ImageProcess.hpp)。只在解析 MNN 头时关掉该警告,不影响本项目。
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wdocumentation"
|
||||||
#include <MNN/llm/llm.hpp>
|
#include <MNN/llm/llm.hpp>
|
||||||
|
#pragma clang diagnostic pop
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <streambuf>
|
#include <streambuf>
|
||||||
|
|||||||
Reference in New Issue
Block a user