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:
Kefu Chai 2022-08-05 15:59:34 +08:00 committed by GitHub
commit 8cb32e9c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);