Skip to content

Commit

Permalink
compiler: drop ; after BUILD_BUG_ON
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mstsirkin committed Jan 31, 2017
1 parent a0def59 commit f298318
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/qemu/compiler.h
Expand Up @@ -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)
Expand Down

0 comments on commit f298318

Please sign in to comment.