diff options
author | Bart Van Assche <bvanassche@acm.org> | 2020-01-06 10:55:48 -0800 |
---|---|---|
committer | Bart Van Assche <bvanassche@acm.org> | 2020-01-06 11:01:38 -0800 |
commit | 40dae137d10e4053993599b4d85f351468b1b5df (patch) | |
tree | 38820378e2497211dd5785f050470b5f9507d5e3 /configure | |
parent | 97f3eddce4d181f3ca378621642be7455c2f1fa1 (diff) | |
download | fio-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-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |