]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
libcephfs_proxy: remove arithmetic on void* 62975/head
authorKefu Chai <tchaikov@gmail.com>
Fri, 25 Apr 2025 15:10:37 +0000 (23:10 +0800)
committerKefu Chai <tchaikov@gmail.com>
Fri, 25 Apr 2025 15:13:25 +0000 (23:13 +0800)
commit8af8f7066fc4d7017d59a631355ed263a7d81825
treed7d10ea264edf1e34fc9cb23fe8da5bd9666705a
parentb3a6c3538e6c93113b3f3d4be297da1a586d23fe
libcephfs_proxy: remove arithmetic on void*

this change is created in the same spirit of bb1fa818.

when building the tree with clang-21, following warning was raised:
```
/home/kefu/dev/ceph/src/libcephfs_proxy/proxy_async.c:43:9: warning: arithmetic on a pointer to void is a GNU extension [-Wgnu-pointer-arith]
   43 |                         data += iov->iov_len;
      |                         ~~~~ ^
1 warning generated.
```

this change should address this warning by casting a `void*` pointer to
`char*` pointer before performing arithmetic operation on it.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/libcephfs_proxy/proxy_async.c