From: Michael Roth Date: Wed, 10 Aug 2011 18:10:51 +0000 (-0500) Subject: qapi: fix build issue due to missing newline in generated header X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7534ba0130a29a3373ed10557e2c64452b75ba8a;p=osstest%2Fqemu.git qapi: fix build issue due to missing newline in generated header 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 Signed-off-by: Anthony Liguori --- diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py index 9ad4c5499..bf617401a 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)