Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-02-21 08:20:38 +0300
committerChristopher Faylor <me@cgf.cx>2000-02-21 08:20:38 +0300
commit9cec3d45aa1e7c7b3aed4559aa8bef57d24612d9 (patch)
treec7033544db3e6e96f568e08cc0b283c58cb24e94 /winsup/cygwin/path.h
parent17869f8bf7adce5296d844c51c14e89f45fc4054 (diff)
Respond to a multitude of g++ warnings.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index 3c0efccae..f0ab684b2 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -27,6 +27,7 @@ enum symlink_follow
enum
{
+ PATH_NOTHING = 0,
PATH_SYMLINK = 1,
PATH_BINARY = MOUNT_BINARY,
PATH_EXEC = MOUNT_EXEC,
@@ -51,8 +52,8 @@ class path_conv
void set_binary () {path_flags |= PATH_BINARY;}
void set_symlink () {path_flags |= PATH_SYMLINK;}
- void set_exec (int x = 1) {path_flags |= x ? PATH_EXEC : 0;}
- void set_has_acls (int x = 1) {path_flags |= x ? PATH_HASACLS : 0;}
+ void set_exec (int x = 1) {path_flags |= x ? PATH_EXEC : PATH_NOTHING;}
+ void set_has_acls (int x = 1) {path_flags |= x ? PATH_HASACLS : PATH_NOTHING;}
char *known_suffix;
@@ -66,7 +67,7 @@ class path_conv
int use_full_path = 0, const suffix_info *suffixes = NULL);
inline char *get_win32 () { return path; }
BOOL is_device () {return devn != FH_BAD;}
- DWORD get_devn () {return devn == FH_BAD ? FH_DISK : devn;}
+ DWORD get_devn () {return devn == FH_BAD ? (DWORD) FH_DISK : devn;}
short get_unitn () {return devn == FH_BAD ? 0 : unit;}
DWORD file_attributes () {return fileattr;}
};