to fix the FTBFS due to following warning:
```
/home/jenkins-build/build/workspace/ceph-windows-pull-requests/ceph/build.deps/src/dokany/dokan/dokan.h:723:22: error: narrowing conversion of '-1' from 'int' to 'long unsigned int' [-Wnarrowing]
723 | #define DOKAN_ERROR -1
| ^
```
also, clean up the following warning:
```
/home/jenkins-build/build/workspace/ceph-windows-pull-requests/ceph/src/dokan/dbg.cc:142:62: warning: NULL used in arithmetic [-Wpointer-arith]
142 | o << "\n\tIsDirectory: " << (DokanFileInfo->IsDirectory != NULL);
|
```
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
<<". 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;
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);