diff options
author | Bernhard Reutner-Fischer | 2006-12-13 16:50:15 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2006-12-13 16:50:15 +0000 |
commit | 5b6f776fe9f71b2266c3d3923a93ffb2d1009fdb (patch) | |
tree | 7ee65c17b1ec01063cd48721999d4665e90d2497 /coreutils | |
parent | 35a4bbe74f87900dc6014a1871e207709fe40de8 (diff) | |
download | busybox-5b6f776fe9f71b2266c3d3923a93ffb2d1009fdb.zip busybox-5b6f776fe9f71b2266c3d3923a93ffb2d1009fdb.tar.gz |
- remove warning about unused depth parameter in add_to_dirlist()
- make one variable static and add comment about why the other variables there are not static.
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/diff.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/coreutils/diff.c b/coreutils/diff.c index 0b83c9d..7a9f8c7 100644 --- a/coreutils/diff.c +++ b/coreutils/diff.c @@ -67,11 +67,13 @@ static unsigned long cmd_flags; #define FLAG_U (1<<12) #define FLAG_w (1<<13) +/* XXX: FIXME: the following variables should be static, but gcc currently + * creates a much bigger object if we do this. */ int context, status; char *start, *label[2]; struct stat stb1, stb2; char **dl; -int dl_count = 0; +static int dl_count = 0; struct cand { int x; @@ -1030,7 +1032,8 @@ static int dir_strcmp(const void *p1, const void *p2) /* This function adds a filename to dl, the directory listing. */ static int add_to_dirlist(const char *filename, - struct stat ATTRIBUTE_UNUSED * sb, void *userdata, int depth) + struct stat ATTRIBUTE_UNUSED * sb, void *userdata, + int depth ATTRIBUTE_UNUSED) { dl_count++; dl = xrealloc(dl, dl_count * sizeof(char *)); |