114 Star 0 Fork 18

src-openEuler/ltrace

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Initialize-nrhs-to-avoid-gcc-warning.patch 669 Bytes
一键复制 编辑 原始数据 按行查看 历史
lingsheng 提交于 2021-01-11 15:04 . Initialize 'nrhs' to avoid gcc warning
From dac8e133866684c2e090f9922871dc3e3b501a30 Mon Sep 17 00:00:00 2001
From: lingsheng <[email protected]>
Date: Mon, 11 Jan 2021 14:27:49 +0800
Subject: [PATCH] Initialize 'nrhs' to avoid gcc warning
---
expr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/expr.c b/expr.c
index 4059a32..01851c8 100644
--- a/expr.c
+++ b/expr.c
@@ -189,10 +189,10 @@ int
expr_clone(struct expr_node *retp, const struct expr_node *node)
{
*retp = *node;
+ struct expr_node *nlhs;
+ struct expr_node *nrhs = NULL;
switch (node->kind) {
- struct expr_node *nlhs;
- struct expr_node *nrhs;
case EXPR_OP_ARGNO:
case EXPR_OP_SELF:
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/ltrace.git
[email protected]:src-openeuler/ltrace.git
src-openeuler
ltrace
ltrace
master

搜索帮助