mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
Merge pull request #47470 from tchaikov/wip-win32-silence-warning
dokan: cast variable to the expected type before comparison Reviewed-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
This commit is contained in:
commit
8cb32e9c50
@ -954,7 +954,7 @@ int do_map() {
|
||||
<<". Mountpoint: " << to_string(g_cfg->mountpoint) << dendl;
|
||||
|
||||
DWORD status = DokanMain(dokan_options, dokan_operations);
|
||||
switch (status) {
|
||||
switch (static_cast<int>(status)) {
|
||||
case DOKAN_SUCCESS:
|
||||
dout(2) << "Dokan has returned successfully" << dendl;
|
||||
break;
|
||||
|
@ -139,7 +139,7 @@ void print_open_params(
|
||||
check_flag(o, FlagsAndAttributes, SECURITY_EFFECTIVE_ONLY);
|
||||
check_flag(o, FlagsAndAttributes, SECURITY_SQOS_PRESENT);
|
||||
|
||||
o << "\n\tIsDirectory: " << (DokanFileInfo->IsDirectory != NULL);
|
||||
o << "\n\tIsDirectory: " << static_cast<bool>(DokanFileInfo->IsDirectory);
|
||||
|
||||
o << "\n\tCreateOptions: " << hex << CreateOptions << " ";
|
||||
check_flag(o, CreateOptions, FILE_DIRECTORY_FILE);
|
||||
|
Loading…
Reference in New Issue
Block a user