]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
integer being interpreted as a character code when assigning to a string 59489/head
authorSuyash Dongre <suyashd999@gmail.com>
Wed, 28 Aug 2024 19:11:53 +0000 (00:41 +0530)
committerSuyash Dongre <suyashd999@gmail.com>
Sat, 31 Aug 2024 20:44:34 +0000 (02:14 +0530)
commitbfbcb3c7f64a94dd1294d2a9fbe808a9856a1237
treeaffce89a7be9b154168c6bc1cae1b5e9d939865b
parent15cbae0a2745e79e6a39d694b39e5140428c3148
integer being interpreted as a character code when assigning to a string

clang-tidy original warning:

`src/cls/rgw/cls_rgw.cc: warning: an integer is interpreted as a character code when assigning it to a string; if this is intended, cast the integer to the appropriate character type; if you want a string representation, use the appropriate conversion facility [bugprone-string-integer-assignment]
key = BI_PREFIX_CHAR;
^
/home/suyash/ceph/src/cls/rgw/cls_rgw.cc:51:24: note: expanded from macro 'BI_PREFIX_CHAR' #define BI_PREFIX_CHAR 0x80`

**On the following lines we are getting the warning:**

1. 138
2. 319
3. 342
4. 2875
5. 2966
6. 3294
7. 3304
8. 3307
9. 3418
10. 3421

Signed-off-by: Suyash Dongre <suyashd999@gmail.com>
src/cls/rgw/cls_rgw.cc