Received: from eggs.gnu.org ([2001:4830:134:3::10]:60856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xejso-0004nh-1L for qemu-devel@nongnu.org; Thu, 16 Oct 2014 08:10:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xejsh-0000Sa-TY for qemu-devel@nongnu.org; Thu, 16 Oct 2014 08:10:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xejsh-0000SU-MZ for qemu-devel@nongnu.org; Thu, 16 Oct 2014 08:10:11 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9GCAAJu032741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 16 Oct 2014 08:10:11 -0400 From: Igor Mammedov Date: Thu, 16 Oct 2014 14:10:06 +0200 Message-Id: <1413461406-59379-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH] block: fix implicit convertion to invalid type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com change type of variable to expected IoOperationType which fixes compile warning: block.c:3655:20: warning: implicit conversion from enumeration type enum IoOperationType to different enumeration type BlockErrorAction Signed-off-by: Igor Mammedov --- block.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/block.c b/block.c index 27533f3..c15fad0 100644 --- a/block.c +++ b/block.c @@ -3650,10 +3650,10 @@ static void send_qmp_error_event(BlockDriverState *bs, BlockErrorAction action, bool is_read, int error) { - BlockErrorAction ac; + IoOperationType op; - ac = is_read ? IO_OPERATION_TYPE_READ : IO_OPERATION_TYPE_WRITE; - qapi_event_send_block_io_error(bdrv_get_device_name(bs), ac, action, + op = is_read ? IO_OPERATION_TYPE_READ : IO_OPERATION_TYPE_WRITE; + qapi_event_send_block_io_error(bdrv_get_device_name(bs), op, action, bdrv_iostatus_is_enabled(bs), error == ENOSPC, strerror(error), &error_abort); -- 1.9.3 (Apple Git-50)