From 72e5e37c2d4f3dc2d1b16537dd1c1a3f25cf5d23 Mon Sep 17 00:00:00 2001 From: ypc <15051963820@163.com> Date: Wed, 8 Jul 2026 13:34:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(liblog):=20=E4=BF=AE=E5=A4=8D=20stru=5Flog?= =?UTF-8?q?=5Fmsg=20=E9=93=BE=E8=A1=A8=E6=8C=87=E9=92=88=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=8D=E5=8C=B9=E9=85=8D=20(6=20warnings)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - typedef struct 添加 tag: struct stru_log_msg - next 指针类型从 struct log_msg* 改为 struct stru_log_msg* - 消除 6 处 incompatible-pointer-types 警告 --- src/public/liblog/src/myLog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/public/liblog/src/myLog.c b/src/public/liblog/src/myLog.c index 74631fd..c319bed 100644 --- a/src/public/liblog/src/myLog.c +++ b/src/public/liblog/src/myLog.c @@ -41,13 +41,13 @@ /** * @brief 单条日志消息(消息池节点 + 队列节点合一) */ -typedef struct +typedef struct stru_log_msg { uint32_t level; /* 日志级别 LOG_INFO/LOG_ERROR */ char time_str[64]; /* 时间戳 YYYY-MM-DD HH:MM:SS.mmm */ char src_info[128]; /* "文件名/函数:行号" */ char content[CONTENT_MAX]; /* 格式化后的日志内容 */ - struct log_msg *next; /* 空闲链表/队列链表指针 */ + struct stru_log_msg *next; /* 空闲链表/队列链表指针 */ } stru_log_msg; /**