diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-03-29 11:02:58 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-03-29 11:02:58 +0000 |
commit | d7d8e7ce075905b4042643347364e4f27962bfbf (patch) | |
tree | f82dbdd75e61d4b4b41f059b4962161d75ae0f94 /winsup/utils/path.cc | |
parent | 91d3057085a04ea2342dc8fc4fb92a3676fd7566 (diff) | |
download | cygnal-d7d8e7ce075905b4042643347364e4f27962bfbf.tar.gz cygnal-d7d8e7ce075905b4042643347364e4f27962bfbf.tar.bz2 cygnal-d7d8e7ce075905b4042643347364e4f27962bfbf.zip |
* 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/path.cc')
-rw-r--r-- | winsup/utils/path.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/utils/path.cc b/winsup/utils/path.cc index 8178eb45a..eaebb6cd1 100644 --- a/winsup/utils/path.cc +++ b/winsup/utils/path.cc @@ -1,6 +1,7 @@ /* path.cc - Copyright 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2010 Red Hat, Inc. + Copyright 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2010, + 2011 Red Hat, Inc. This file is part of Cygwin. @@ -299,6 +300,7 @@ conv_fstab_spaces (char *field) return field; } +#ifndef FSTAB_ONLY static struct opt { const char *name; @@ -353,6 +355,7 @@ read_flags (char *options, unsigned &flags) } return true; } +#endif bool from_fstab_line (mnt_t *m, char *line, bool user) @@ -579,7 +582,6 @@ read_mounts () DWORD len; WCHAR path[32768]; PWCHAR path_end; - HMODULE h; for (mnt_t *m1 = mount_table; m1->posix; m1++) { |