Skip to content

Commit 43ff5c3

Browse files
committed
消除 warning
1 parent 981a191 commit 43ff5c3

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

lib/xy.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,8 @@ xy_dir_exist (const char *path)
10331033
else
10341034
return false;
10351035
}
1036+
1037+
return false;
10361038
}
10371039

10381040
/**

src/framework/chef.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ chef_debug_target (Target_t *target)
3333
printf (" Inited?: %d\n", target->inited);
3434

3535
printf (" Sources: %p\n", target->sources);
36-
printf (" Sources Count: %lld\n", target->sources_n);
36+
printf (" Sources Count: %d\n", target->sources_n);
3737

3838
printf (" Chef: %p\n", target->chef);
3939
printf (" Cooks: %p\n", target->cooks);
40-
printf (" Cooks Count: %lld\n", target->cooks_n);
40+
printf (" Cooks Count: %d\n", target->cooks_n);
4141
printf (" Sauciers: %p\n", target->sauciers);
42-
printf (" Sauciers Count: %lld\n", target->sauciers_n);
42+
printf (" Sauciers Count: %d\n", target->sauciers_n);
4343
#endif
4444
}
4545

src/framework/struct.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ typedef struct Target_t
128128
void (*preludefn) (void);
129129
bool inited; /* 是否执行过了 preludefn() */
130130

131-
Source_t *sources;
132-
size_t sources_n;
131+
Source_t *sources;
132+
int sources_n;
133133

134134

135135
/* Features */
@@ -151,9 +151,9 @@ typedef struct Target_t
151151

152152
Contributor_t *chef; /* 该 recipe *当前*的总负责人 (可以任职也可以休职) */
153153
Contributor_t **cooks; /* 该 recipe 的主要作者 */
154-
size_t cooks_n;
154+
int cooks_n;
155155
Contributor_t **sauciers; /* 该 recipe 的次要贡献者 (除主要作者外的其他人) */
156-
size_t sauciers_n;
156+
int sauciers_n;
157157
}
158158
Target_t;
159159

0 commit comments

Comments
 (0)