This patch fixes the following configure test build error if configure is
invoked with --extra-cflags=-Werror:
/tmp/fio-conf-14710-130227-4466.c: In function 'main':
/tmp/fio-conf-14710-130227-4466.c:4:18: error: unused variable 'pd' [-Werror=unused-variable]
struct ibv_pd *pd = ibv_alloc_pd(NULL);
^~
cc1: all warnings being treated as errors
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
int main(int argc, char **argv)
{
struct ibv_pd *pd = ibv_alloc_pd(NULL);
- return 0;
+ return pd != NULL;
}
EOF
if test "$disable_rdma" != "yes" && compile_prog "" "-libverbs" "libverbs" ; then