]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
libcephfs_proxy: remove arithmetic on void*
authorKefu Chai <tchaikov@gmail.com>
Fri, 25 Apr 2025 15:10:37 +0000 (23:10 +0800)
committerAnoop C S <anoopcs@cryptolab.net>
Fri, 15 Aug 2025 09:52:16 +0000 (15:22 +0530)
commit67fdec2e238fb394159ee511b70a443d8200bf90
treefaed273b1407eac836dba79c9657f6a8be89d603
parent8a7379d4d7e23942bba086a0ccc580bb9b512406
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>
(cherry picked from commit 8af8f7066fc4d7017d59a631355ed263a7d81825)
src/libcephfs_proxy/proxy_async.c