Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
verbs: Make integer conversions explicit
Make integer conversions explicit to silent the following warnings/errors: ./build/include/infiniband/verbs.h: In function ‘__ibv_reg_mr’: ./build/include/infiniband/verbs.h:2550:53: \ error: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion] 2550 | return ibv_reg_mr(pd, addr, length, access); | ^~~~~~ ./build/include/infiniband/verbs.h: In function ‘__ibv_reg_mr_iova’: ./build/include/infiniband/verbs.h:2573:64: error: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion] 2573 | return ibv_reg_mr_iova(pd, addr, length, iova, access); | ^~~~~~ ./build/include/infiniband/verbs.h: In function ‘ibv_create_srq_ex’: ./build/include/infiniband/verbs.h:2935:20: error: unsigned conversion from ‘int’ to ‘uint32_t’ {aka ‘unsigned int’} changes value from ‘-4’ to ‘4294967292’ [-Werror=sign-conversion] 2935 | if (!(mask & ~(IBV_SRQ_INIT_ATTR_PD | IBV_SRQ_INIT_ATTR_TYPE)) && | ^ cc1: all warnings being treated as errors Signed-off-by: Lukasz Dorau <[email protected]>
- Loading branch information