消除 warning

This commit is contained in:
Aoran Zeng 2025-08-22 19:16:58 +08:00
parent 981a191de8
commit 43ff5c3fd1
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
3 changed files with 9 additions and 7 deletions

View File

@ -1033,6 +1033,8 @@ xy_dir_exist (const char *path)
else
return false;
}
return false;
}
/**

View File

@ -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
}

View File

@ -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;