diff options
| author | Marcel Apfelbaum | 2019-03-04 19:49:23 +0100 |
|---|---|---|
| committer | Dr. David Alan Gilbert | 2019-03-06 11:49:17 +0100 |
| commit | 9589e7630139700581eff3ba9ddfdfbe99362440 (patch) | |
| tree | e77101e0c590d1837a26714a7c92a04a2753b14b /include | |
| parent | migration: Cleanup during exit (diff) | |
| download | qemu-9589e7630139700581eff3ba9ddfdfbe99362440.tar.gz qemu-9589e7630139700581eff3ba9ddfdfbe99362440.tar.xz qemu-9589e7630139700581eff3ba9ddfdfbe99362440.zip | |
migration/rdma: clang compilation fix
Configuring QEMU with:
../configure --cc=clang --enable-rdma
Leads to compilation error:
CC migration/rdma.o
CC migration/block.o
qemu/migration/rdma.c:3615:58: error: taking address of packed member 'rkey' of class or structure
'RDMARegisterResult' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
(uintptr_t)host_addr, NULL, ®_result->rkey,
^~~~~~~~~~~~~~~~
Fix it by using a temp local variable.
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Message-Id: <20190304184923.24215-1-marcel.apfelbaum@gmail.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
