1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 18:19:00 +02:00

remove.c: avoid compiler warning

* src/remove.c (compare_ino, dirent_count)
[!HAVE_STRUCT_DIRENT_D_TYPE]: Mask declaration when unused.

Signed-off-by: Eric Blake <ebb9@byu.net>
This commit is contained in:
Eric Blake
2008-09-27 18:14:07 -06:00
parent 24412edeaf
commit 58aaf71f07
+2
View File
@@ -1257,6 +1257,7 @@ struct readdir_data
char name[FLEXIBLE_ARRAY_MEMBER];
};
#if HAVE_STRUCT_DIRENT_D_TYPE
/* A comparison function to sort on increasing inode number. */
static int
compare_ino (void const *av, void const *bv)
@@ -1274,6 +1275,7 @@ dirent_count (struct stat const *st)
{
return st->st_size / 16;
}
#endif /* HAVE_STRUCT_DIRENT_D_TYPE */
/* When a directory contains very many entries, operating on N entries in
readdir order can be very seek-intensive (be it to unlink or even to