Cygwin: utils: avoid warning when building path_testsuite-path.o

Avoid this warning:

[...]/winsup/utils/mingw/../path.cc:569:1: warning: 'void read_mounts() ' defined but not used [-Wunused-function]
  569 | read_mounts ()
      | ^~~~~~~~~~~

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2021-05-20 22:47:40 +02:00
parent 3053632389
commit 8c6c9b097d
1 changed files with 3 additions and 4 deletions

View File

@ -547,6 +547,9 @@ from_fstab (bool user, PWCHAR path, PWCHAR path_end)
#endif /* !FSTAB_ONLY */
#ifndef FSTAB_ONLY
#ifdef TESTSUITE
#define read_mounts testsuite_read_mounts
#else
static int
mnt_sort (const void *a, const void *b)
{
@ -640,12 +643,8 @@ read_mounts ()
from_fstab (true, path, path_end);
qsort (mount_table, max_mount_entry, sizeof (mnt_t), mnt_sort);
}
#ifdef TESTSUITE
#define read_mounts testsuite_read_mounts
#endif
/* Return non-zero if PATH1 is a prefix of PATH2.
Both are assumed to be of the same path style and / vs \ usage.
Neither may be "".