aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2017-01-18 22:02:53 +0200
committerMichael S. Tsirkin <mst@redhat.com>2017-01-31 15:57:27 +0200
commitf29831828441318c7916ae28e6e16e4a1c4a6795 (patch)
tree4e4b8e4216b797bca20fe267fbfe5c10eff53efa /include
parenta0def594286d9110a6035e02eef558cf3cf5d847 (diff)
downloadqemu-f29831828441318c7916ae28e6e16e4a1c4a6795.zip
qemu-f29831828441318c7916ae28e6e16e4a1c4a6795.tar.gz
qemu-f29831828441318c7916ae28e6e16e4a1c4a6795.tar.bz2
compiler: drop ; after BUILD_BUG_ON
All users include the trailing ; anyway, let's require that - it seems cleaner. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/compiler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h
index 157698b..7512082 100644
--- a/include/qemu/compiler.h
+++ b/include/qemu/compiler.h
@@ -86,7 +86,8 @@
#define type_check(t1,t2) ((t1*)0 - (t2*)0)
#define QEMU_BUILD_BUG_ON(x) \
- typedef char glue(qemu_build_bug_on__,__LINE__)[(x)?-1:1] __attribute__((unused));
+ typedef char glue(qemu_build_bug_on__, __LINE__)[(x) ? -1 : 1] \
+ __attribute__((unused))
#if defined __GNUC__
# if !QEMU_GNUC_PREREQ(4, 4)