diff options
author | Markus Armbruster <armbru@redhat.com> | 2018-08-28 14:07:35 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2018-08-28 18:21:38 +0200 |
commit | 5f1450f5444b42cde4b1edc61ea5fdcd57404d3e (patch) | |
tree | cc8d236f830511bafb9ad05c1159d6a318e8d3a7 /scripts/qapi | |
parent | 3ab72385b21d8d66df3f5fea42097ce264dc9d6b (diff) | |
download | qemu-5f1450f5444b42cde4b1edc61ea5fdcd57404d3e.zip qemu-5f1450f5444b42cde4b1edc61ea5fdcd57404d3e.tar.gz qemu-5f1450f5444b42cde4b1edc61ea5fdcd57404d3e.tar.bz2 |
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.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180828120736.32323-2-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qapi')
-rw-r--r-- | scripts/qapi/common.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/qapi/common.py b/scripts/qapi/common.py index 3b0d4bf..7b62a4c 100644 --- a/scripts/qapi/common.py +++ b/scripts/qapi/common.py @@ -2218,6 +2218,7 @@ class QAPIGenC(QAPIGenCCode): def _bottom(self, fname): return mcgen(''' + /* Dummy declaration to prevent empty .o file */ char dummy_%(name)s; ''', |