Procházet zdrojové kódy

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 <mdroth@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Michael Roth před 14 roky
rodič
revize
7534ba0130
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      scripts/qapi-commands.py

+ 1 - 1
scripts/qapi-commands.py

@@ -375,7 +375,7 @@ def gen_command_def_prologue(prefix="", proxy=False):
         ret = gen_marshal_input(cmd['command'], arglist, ret_type) + "\n"
         ret = gen_marshal_input(cmd['command'], arglist, ret_type) + "\n"
         fdef.write(ret)
         fdef.write(ret)
 
 
-    fdecl.write("\n#endif");
+    fdecl.write("\n#endif\n");
     ret = gen_registry(commands)
     ret = gen_registry(commands)
     fdef.write(ret)
     fdef.write(ret)