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 252dc3105fc). Separate it from
the code preceding it (if any) with a blank line.

Backports commit 5f1450f5444b42cde4b1edc61ea5fdcd57404d3e from qemu
This commit is contained in:
Markus Armbruster 2018-09-25 21:12:13 -04:00 committed by Lioncash
parent 9c05496958
commit 8446222237
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -2226,6 +2226,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;
''', ''',