From patchwork Thu Jul 7 16:02:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 103690 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8F9651007D1 for ; Fri, 8 Jul 2011 02:21:14 +1000 (EST) Received: from localhost ([::1]:40358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QerKA-0007ec-Ls for incoming@patchwork.ozlabs.org; Thu, 07 Jul 2011 12:21:11 -0400 Received: from eggs.gnu.org ([140.186.70.92]:40510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qer2l-0003SO-AI for qemu-devel@nongnu.org; Thu, 07 Jul 2011 12:03:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qer2j-0006sy-9I for qemu-devel@nongnu.org; Thu, 07 Jul 2011 12:03:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qer2i-0006sn-QG for qemu-devel@nongnu.org; Thu, 07 Jul 2011 12:03:09 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p67G30mN003606 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 7 Jul 2011 12:03:01 -0400 Received: from doriath (ovpn-113-129.phx2.redhat.com [10.3.113.129]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p67G2w6Q026014; Thu, 7 Jul 2011 12:02:59 -0400 Date: Thu, 7 Jul 2011 13:02:55 -0300 From: Luiz Capitulino To: qemu-devel Message-ID: <20110707130255.76f47cd0@doriath> Organization: Red Hat Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: mdroth@linux.vnet.ibm.com Subject: [Qemu-devel] [PATCH] Error: Fix build when qemu-common.h is not included X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Commit e4ea5e2d0e0e4c5188ab45b66f3195062ae059dc added the use of the macro GCC_FMT_ATTR to error.h, however qemu-common.h is not included by error.h This will cause a build error when files including error.h don't include qemu-common.h. Not an issue today because the only file including it is json-parser.h and it does include qemu-common.h, but let's fix it. Signed-off-by: Luiz Capitulino Tested-by: Michael Roth --- error.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/error.h b/error.h index 0f92a6f..6e3bd98 100644 --- a/error.h +++ b/error.h @@ -12,7 +12,7 @@ #ifndef ERROR_H #define ERROR_H -#include +#include "qemu-common.h" /** * A class representing internal errors within QEMU. An error has a string