]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
dokan: cast variable to the expected type before comparison
authorKefu Chai <tchaikov@gmail.com>
Fri, 5 Aug 2022 00:17:45 +0000 (08:17 +0800)
committerKefu Chai <tchaikov@gmail.com>
Fri, 5 Aug 2022 00:31:27 +0000 (08:31 +0800)
commitf27e16ff9494e1d1f36324b64fb24a16fcf929b3
tree2bb5103c3946d2585ff8f5f11f985b3186623b22
parent2a87d0dadab1873fd1b1b644b11fd76646509d99
dokan: cast variable to the expected type before comparison

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>
src/dokan/ceph_dokan.cc
src/dokan/dbg.cc