summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2020-01-06 10:55:48 -0800
committerBart Van Assche <bvanassche@acm.org>2020-01-06 11:01:38 -0800
commit40dae137d10e4053993599b4d85f351468b1b5df (patch)
tree38820378e2497211dd5785f050470b5f9507d5e3 /configure
parent97f3eddce4d181f3ca378621642be7455c2f1fa1 (diff)
downloadfio-40dae137d10e4053993599b4d85f351468b1b5df.tar.gz
fio-40dae137d10e4053993599b4d85f351468b1b5df.tar.bz2
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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index fa6df532..65ce3662 100755
--- a/configure
+++ b/configure
@@ -841,7 +841,7 @@ cat > $TMPC << EOF
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