[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/2] qapi: Emit a blank line before dummy declaratio
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] [PATCH 1/2] qapi: Emit a blank line before dummy declaration |
Date: |
Tue, 28 Aug 2018 14:07:35 +0200 |
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 <address@hidden>
---
scripts/qapi/common.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/qapi/common.py b/scripts/qapi/common.py
index 02c5c6767a..5bbf1c353d 100644
--- a/scripts/qapi/common.py
+++ b/scripts/qapi/common.py
@@ -2220,6 +2220,7 @@ class QAPIGenC(QAPIGenCCode):
def _bottom(self, fname):
return mcgen('''
+
/* Dummy declaration to prevent empty .o file */
char dummy_%(name)s;
''',
--
2.17.1