Commit 6c389ef
committed
shard.c: fix clang warnings
Fix the following warning that are seen when compiling with clang:
make[4]: Entering directory '/home/ykaul/github/glusterfs/xlators/features/shard/src'
CC shard.lo
shard.c:1292:38: warning: cast to smaller integer type 'shard_internal_dir_type_t' from 'void *' [-Wvoid-pointer-to-enum-cast]
1292 | shard_internal_dir_type_t type = (shard_internal_dir_type_t)cookie;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
shard.c:1373:38: warning: cast to smaller integer type 'shard_internal_dir_type_t' from 'void *' [-Wvoid-pointer-to-enum-cast]
1373 | shard_internal_dir_type_t type = (shard_internal_dir_type_t)cookie;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
shard.c:5892:38: warning: cast to smaller integer type 'shard_internal_dir_type_t' from 'void *' [-Wvoid-pointer-to-enum-cast]
5892 | shard_internal_dir_type_t type = (shard_internal_dir_type_t)cookie;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Yaniv Kaul <[email protected]>1 parent 3e0a8cb commit 6c389ef
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
1292 | | - | |
| 1292 | + | |
| 1293 | + | |
1293 | 1294 | | |
1294 | 1295 | | |
1295 | 1296 | | |
| |||
1370 | 1371 | | |
1371 | 1372 | | |
1372 | 1373 | | |
1373 | | - | |
| 1374 | + | |
| 1375 | + | |
1374 | 1376 | | |
1375 | 1377 | | |
1376 | 1378 | | |
| |||
5889 | 5891 | | |
5890 | 5892 | | |
5891 | 5893 | | |
5892 | | - | |
| 5894 | + | |
| 5895 | + | |
5893 | 5896 | | |
5894 | 5897 | | |
5895 | 5898 | | |
| |||
0 commit comments