aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorRami Rosen <rami.rosen@intel.com>2017-01-10 11:19:25 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-01-31 08:14:52 +0100
commit6b557d7c933442377de59b71d0d82c3ccba68b2e (patch)
tree59e67a6567238e3ff6806b4b50db286c367407b3 /scripts/qapi-commands.py
parentui/gtk: Fix mouse wheel on 3.4.0 or later (diff)
downloadqemu-6b557d7c933442377de59b71d0d82c3ccba68b2e.tar.xz
qemu-6b557d7c933442377de59b71d0d82c3ccba68b2e.zip
ui: fix format specfier in vnc to avoid break in build.
When building qemu after setting _VNC_DEBUG to 1 (see ui/vnc.h), we get the following error and the build breaks: ... ui/vnc.c: In function ‘vnc_client_io_error’: ui/vnc.c:1262:13: error: format ‘%d’ expects argument of type ‘int’, but VNC_DEBUG("Closing down client sock: ret %d (%s)\n", ^ cc1: all warnings being treated as errors make: *** [ui/vnc.o] Error 1 ... This patch solves this issue by fixing the print format specifier in vnc_client_io_error() to be %zd, which corresponds to the type of the "ret" variable. Signed-off-by: Rami Rosen <rami.rosen@intel.com> Message-id: 1484039965-25907-1-git-send-email-rami.rosen@intel.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions