aboutsummaryrefslogtreecommitdiff
path: root/winsup/utils/cygcheck.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-03-29 11:02:58 +0000
committerCorinna Vinschen <corinna@vinschen.de>2011-03-29 11:02:58 +0000
commitd7d8e7ce075905b4042643347364e4f27962bfbf (patch)
treef82dbdd75e61d4b4b41f059b4962161d75ae0f94 /winsup/utils/cygcheck.cc
parent91d3057085a04ea2342dc8fc4fb92a3676fd7566 (diff)
downloadnewlib-d7d8e7ce075905b4042643347364e4f27962bfbf.zip
newlib-d7d8e7ce075905b4042643347364e4f27962bfbf.tar.gz
newlib-d7d8e7ce075905b4042643347364e4f27962bfbf.tar.bz2
* cygcheck.cc (handle_unique_object_name): Avoid a compiler warning.
(dump_sysinfo): Ditto. * loadlib.h (_load_sys_library): Mark as used, to avoid a compiler warning. * path.cc (oopt): Gurad with !FSTAB_ONLY to avoid a compiler warning. (read_flags): Ditto.
Diffstat (limited to 'winsup/utils/cygcheck.cc')
-rw-r--r--winsup/utils/cygcheck.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc
index 1d2aa20..0c56bbd 100644
--- a/winsup/utils/cygcheck.cc
+++ b/winsup/utils/cygcheck.cc
@@ -1304,7 +1304,7 @@ int
handle_unique_object_name (int opt, char *path)
{
HANDLE fh, fm;
- void *haystack;
+ void *haystack = NULL;
if (!path || !*path)
usage (stderr, 1);
@@ -1758,7 +1758,7 @@ dump_sysinfo ()
continue;
char drive[4], name[200], fsname[200];
DWORD serno = 0, maxnamelen = 0, flags = 0;
- name[0] = name[0] = fsname[0] = 0;
+ name[0] = fsname[0] = 0;
sprintf (drive, "%c:\\", i + 'a');
/* Report all errors, except if the Volume is ERROR_NOT_READY.
ERROR_NOT_READY is returned when removeable media drives are empty