From ab3964db4e75e34f6f9347406c5fd2bced04f2dd Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 13 Oct 2015 14:50:20 +0200 Subject: libbb: introduce kernel-style BUILD_BUG_ON() Signed-off-by: Denys Vlasenko --- util-linux/umount.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'util-linux') diff --git a/util-linux/umount.c b/util-linux/umount.c index c6c7441b8..00910977d 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -82,11 +82,7 @@ int umount_main(int argc UNUSED_PARAM, char **argv) // MNT_FORCE and MNT_DETACH (from linux/fs.h) must match // OPT_FORCE and OPT_LAZY. - { - typedef char bug[ - (OPT_FORCE != MNT_FORCE || OPT_LAZY != MNT_DETACH) ? -1 : 1 - ]; - } + BUILD_BUG_ON(OPT_FORCE != MNT_FORCE || OPT_LAZY != MNT_DETACH); doForce = opt & (OPT_FORCE|OPT_LAZY); /* Get a list of mount points from mtab. We read them all in now mostly -- cgit v1.2.3