]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 8 Sep 2022 16:01:56 +0000 (18:01 +0200)
commit365901c8d5adf158a60fa225b99a2ab8337f0e41
tree1efea05514159e9dae38f7eb5ec8780b41ea56de
parent5bab411cf7c0853eb04b4550970e733adcdab9cc
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>
(cherry picked from commit f27e16ff9494e1d1f36324b64fb24a16fcf929b3)
src/dokan/ceph_dokan.cc
src/dokan/dbg.cc