From 43ff5c3fd16ac4d79eeb4104431dacac627d9fe6 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Fri, 22 Aug 2025 19:16:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=99=A4=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/xy.h | 2 ++ src/framework/chef.c | 6 +++--- src/framework/struct.h | 8 ++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/xy.h b/lib/xy.h index 5a62e70..391ab1b 100644 --- a/lib/xy.h +++ b/lib/xy.h @@ -1033,6 +1033,8 @@ xy_dir_exist (const char *path) else return false; } + + return false; } /** diff --git a/src/framework/chef.c b/src/framework/chef.c index 0ea21dc..6a78794 100644 --- a/src/framework/chef.c +++ b/src/framework/chef.c @@ -33,13 +33,13 @@ chef_debug_target (Target_t *target) printf (" Inited?: %d\n", target->inited); printf (" Sources: %p\n", target->sources); - printf (" Sources Count: %lld\n", target->sources_n); + printf (" Sources Count: %d\n", target->sources_n); printf (" Chef: %p\n", target->chef); printf (" Cooks: %p\n", target->cooks); - printf (" Cooks Count: %lld\n", target->cooks_n); + printf (" Cooks Count: %d\n", target->cooks_n); printf (" Sauciers: %p\n", target->sauciers); - printf (" Sauciers Count: %lld\n", target->sauciers_n); + printf (" Sauciers Count: %d\n", target->sauciers_n); #endif } diff --git a/src/framework/struct.h b/src/framework/struct.h index ef3bbdc..0800efd 100644 --- a/src/framework/struct.h +++ b/src/framework/struct.h @@ -128,8 +128,8 @@ typedef struct Target_t void (*preludefn) (void); bool inited; /* 是否执行过了 preludefn() */ - Source_t *sources; - size_t sources_n; + Source_t *sources; + int sources_n; /* Features */ @@ -151,9 +151,9 @@ typedef struct Target_t Contributor_t *chef; /* 该 recipe *当前*的总负责人 (可以任职也可以休职) */ Contributor_t **cooks; /* 该 recipe 的主要作者 */ - size_t cooks_n; + int cooks_n; Contributor_t **sauciers; /* 该 recipe 的次要贡献者 (除主要作者外的其他人) */ - size_t sauciers_n; + int sauciers_n; } Target_t;