mirror of https://github.com/xemu-project/xemu.git
qapi: Emit a blank line before dummy declaration
We emit a dummy variable in each .c file "to shut up OSX toolchain
warnings about empty .o files" (commit 252dc3105f
). Separate it from
the code preceding it (if any) with a blank line.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180828120736.32323-2-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
3ab72385b2
commit
5f1450f544
|
@ -2218,6 +2218,7 @@ class QAPIGenC(QAPIGenCCode):
|
||||||
|
|
||||||
def _bottom(self, fname):
|
def _bottom(self, fname):
|
||||||
return mcgen('''
|
return mcgen('''
|
||||||
|
|
||||||
/* Dummy declaration to prevent empty .o file */
|
/* Dummy declaration to prevent empty .o file */
|
||||||
char dummy_%(name)s;
|
char dummy_%(name)s;
|
||||||
''',
|
''',
|
||||||
|
|
Loading…
Reference in New Issue