Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit 61c31f4

Browse files
author
Prasanna Kulkarni
committed
CORTX-31894: Modify persistant UT
Signed-off-by: Prasanna Kulkarni <[email protected]>
1 parent 3fffb45 commit 61c31f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

be/btree.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10296,6 +10296,7 @@ static int btree_ut_thread_init(struct btree_ut_thread_info *ti)
1029610296
#define FILL_KEY_MTREE_UT(key, ksize, data) \
1029710297
do { \
1029810298
uint32_t i; \
10299+
(void)(&i == &key[0]); \
1029910300
key[0] = data; \
1030010301
key[1] = m0_byteorder_cpu_to_be32(ksize); \
1030110302
for (i = 2; i < (ksize / sizeof(key[0])); i++) \
@@ -10305,6 +10306,7 @@ static int btree_ut_thread_init(struct btree_ut_thread_info *ti)
1030510306
#define FILL_VALUE_MTREE_UT(value, vsize, data, crc) \
1030610307
do { \
1030710308
uint32_t i = 0; \
10309+
(void)(&i == &value[0]); \
1030810310
if (crc == M0_BCT_NO_CRC) { \
1030910311
value[0] = data; \
1031010312
value[1] = m0_byteorder_cpu_to_be32(vsize); \

0 commit comments

Comments
 (0)