Received: from eggs.gnu.org ([2001:4830:134:3::10]:36871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZzlR-0001Zn-0m for qemu-devel@nongnu.org; Wed, 17 Aug 2016 08:16:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZzlJ-0005ok-Pd for qemu-devel@nongnu.org; Wed, 17 Aug 2016 08:16:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZzlJ-0005oG-Jx for qemu-devel@nongnu.org; Wed, 17 Aug 2016 08:16:01 -0400 From: Fam Zheng Date: Wed, 17 Aug 2016 20:15:55 +0800 Message-Id: <1471436155-9716-2-git-send-email-famz@redhat.com> In-Reply-To: <1471436155-9716-1-git-send-email-famz@redhat.com> References: <1471436155-9716-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PULL 1/1] curl: Cast fd to int for DPRINTF List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell Currently "make docker-test-mingw@fedora" has a warning like: /tmp/qemu-test/src/block/curl.c: In function 'curl_sock_cb': /tmp/qemu-test/src/block/curl.c:172:6: warning: format '%d' expects argument of type 'int', but argument 4 has type 'curl_socket_t {aka long long unsigned int}' DPRINTF("CURL (AIO): Sock action %d on fd %d\n", action, fd); ^ cc1: all warnings being treated as errors Cast to int to suppress it. Signed-off-by: Fam Zheng Message-Id: <1470027888-24381-1-git-send-email-famz@redhat.com> Reviewed-by: John Snow --- block/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/curl.c b/block/curl.c index da9f5e8..426fb4d 100644 --- a/block/curl.c +++ b/block/curl.c @@ -169,7 +169,7 @@ static int curl_sock_cb(CURL *curl, curl_socket_t fd, int action, state->sock_fd = fd; s = state->s; - DPRINTF("CURL (AIO): Sock action %d on fd %d\n", action, fd); + DPRINTF("CURL (AIO): Sock action %d on fd %d\n", action, (int)fd); switch (action) { case CURL_POLL_IN: aio_set_fd_handler(s->aio_context, fd, false, -- 2.7.4