configure: Improve the ibverbs test
authorBart Van Assche <bvanassche@acm.org>
Mon, 6 Jan 2020 18:55:48 +0000 (10:55 -0800)
committerBart Van Assche <bvanassche@acm.org>
Mon, 6 Jan 2020 19:01:38 +0000 (11:01 -0800)
commit40dae137d10e4053993599b4d85f351468b1b5df
tree38820378e2497211dd5785f050470b5f9507d5e3
parent97f3eddce4d181f3ca378621642be7455c2f1fa1
configure: Improve the ibverbs test

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>
configure