summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2013-10-18 14:50:29 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2013-10-28 11:12:20 +0100
commit1b6ced7ddafd1bc6e490af091427327b05c96b3f (patch)
tree47e11d88e44137e9383f743df39b1c6932ccff9c /configure.ac
parent56e7876d8f935f573db5fa44d7a15bc345310917 (diff)
downloadspice-1b6ced7ddafd1bc6e490af091427327b05c96b3f.tar.gz
spice-1b6ced7ddafd1bc6e490af091427327b05c96b3f.tar.xz
spice-1b6ced7ddafd1bc6e490af091427327b05c96b3f.zip
Silence gcc false positive with -Wuninitialized
Some versions of gcc warn about: red_channel.c: In function 'red_channel_client_wait_outgoing_item': red_channel.c:2331: error: 'end_time' may be used uninitialized in this function [-Wuninitialized] red_channel.c: In function 'red_channel_client_wait_pipe_item_sent': red_channel.c:2363: error: 'end_time' may be used uninitialized in this function [-Wuninitialized] red_channel.c: In function 'red_channel_wait_all_sent': red_channel.c:2401: error: 'end_time' may be used uninitialized in this function [-Wuninitialized] This is a false positive as end_time is unitialized when timeout is -1, and we will only try to use end_time if timeout is not -1. This commit initializes end_time to UINT64_MAX to avoid that warning. As the test involving end_time will never be reached, we ensure it's always TRUE so that it would be a noop even if it was reached.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions