diff options
author | Marc-André Lureau | 2019-03-05 16:15:00 +0100 |
---|---|---|
committer | Laurent Vivier | 2019-03-07 10:57:29 +0100 |
commit | b78c522ab949582b5e580e15d6ebf979845ccc94 (patch) | |
tree | 8c3d5405ef83ce10bad312b7e7b8e8219aa6bde6 /qemu-img.texi | |
parent | linux-user: don't short-circuit read with zero length (diff) | |
download | qemu-b78c522ab949582b5e580e15d6ebf979845ccc94.tar.gz qemu-b78c522ab949582b5e580e15d6ebf979845ccc94.tar.xz qemu-b78c522ab949582b5e580e15d6ebf979845ccc94.zip |
linux-user: fix "may be used uninitialized" warnings
Fixes:
/home/elmarco/src/qemu/linux-user/syscall.c: In function ‘do_ioctl_rt’:
/home/elmarco/src/qemu/linux-user/syscall.c:4773:9: error: ‘host_rt_dev_ptr’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
if (*host_rt_dev_ptr != 0) {
^~~~~~~~~~~~~~~~
/home/elmarco/src/qemu/linux-user/syscall.c:4774:9: error: ‘target_rt_dev_ptr’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
unlock_user((void *)*host_rt_dev_ptr,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*target_rt_dev_ptr, 0);
~~~~~~~~~~~~~~~~~~~~~~
Based on previous discussion from patch "linux-users/syscall: make
do_ioctl_rt safer" by Alex Bennée.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20190305151500.25038-1-marcandre.lureau@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'qemu-img.texi')
0 files changed, 0 insertions, 0 deletions