From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qrc0x-00065i-7X for qemu-devel@nongnu.org; Thu, 11 Aug 2011 16:38:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qrc0w-00045D-3P for qemu-devel@nongnu.org; Thu, 11 Aug 2011 16:38:02 -0400 Received: from mout.perfora.net ([74.208.4.194]:52490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qrc0v-00044q-Sl for qemu-devel@nongnu.org; Thu, 11 Aug 2011 16:38:01 -0400 From: Michael Roth Date: Thu, 11 Aug 2011 15:37:41 -0500 Message-Id: <1313095061-25060-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH] qapi: fix build issue due to missing newline in generated header List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, mdroth@linux.vnet.ibm.com Fixes a build issue on RHEL5, and potentially other distros, where gcc will generate an error due to us not writing a trailing "\n" when generating *qmp-commands.h Signed-off-by: Michael Roth --- scripts/qapi-commands.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py index 9ad4c54..bf61740 100644 --- a/scripts/qapi-commands.py +++ b/scripts/qapi-commands.py @@ -375,7 +375,7 @@ if dispatch_type == "sync": ret = gen_marshal_input(cmd['command'], arglist, ret_type) + "\n" fdef.write(ret) - fdecl.write("\n#endif"); + fdecl.write("\n#endif\n"); ret = gen_registry(commands) fdef.write(ret) -- 1.7.0.4