1 Star 0 Fork 19

April_Zhao/libkcapi

forked from src-openEuler/libkcapi 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Prevent-cppcheck-from-defining-CHECK_DIR.patch 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
From 2a49df86007becae89f335025e549bdbd26a24d2 Mon Sep 17 00:00:00 2001
From: Ondrej Mosnacek <[email protected]>
Date: Wed, 26 Jul 2023 10:32:34 +0200
Subject: [PATCH] Prevent cppcheck from defining CHECK_DIR
Recent versions of cppcheck fail with a syntax error when they check
apps/kcapi-hasher.c with CHECK_DIR defined (probably they now define it
to 1 instead of an empty value). To fix it, instruct cppcheck to only
check with CHECK_DIR left undefined.
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2225970
Signed-off-by: Ondrej Mosnacek <[email protected]>
Signed-off-by: Stephan Mueller <[email protected]>
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 0a6ff26..0189848 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -241,7 +241,7 @@ endif
if HAVE_CPPCHECK
cppcheck:
- $(CPPCHECK) --error-exitcode=42 --enable=performance,warning,portability $(sort $(SCAN_FILES))
+ $(CPPCHECK) -U CHECK_DIR --error-exitcode=42 --enable=performance,warning,portability $(sort $(SCAN_FILES))
endif
if HAVE_MKTEMP
--
2.27.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/April_Zhao/libkcapi.git
[email protected]:April_Zhao/libkcapi.git
April_Zhao
libkcapi
libkcapi
master

搜索帮助