Skip to contentSkip to conversation

qapi: fix build issue due to missing newline in generated header

PATCH Applied Michael Roth 2 participants 2 messages Aug 10, 2011 – Aug 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 scripts/qapi-commands.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/qapi-commands.py +1 -1
index 9ad4c54..bf61740 100644
@@ -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)
 
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 5 lines · Michael Roth

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

Applied to master. Thanks.

Regards,

Anthony Liguori

Quoted 17 lines
---
  scripts/qapi-commands.py |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
scripts/qapi-commands.py +1 -1
index 9ad4c54..bf61740 100644
@@ -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)