cp: placate gcc8
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 1 Aug 2018 16:29:41 +0000 (18:29 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 1 Aug 2018 16:29:41 +0000 (18:29 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/cp.c

index ae60623d310609ca066cdac5510fbcbf76d07e38..b26c0e9547c8a45a2f01ec15d6a79dfd1a984853 100644 (file)
@@ -114,7 +114,7 @@ int cp_main(int argc, char **argv)
 # endif
        );
 # if ENABLE_FEATURE_CP_REFLINK
-       BUILD_BUG_ON(OPT_reflink != FILEUTILS_REFLINK);
+       BUILD_BUG_ON((int)OPT_reflink != (int)FILEUTILS_REFLINK);
        if (flags & FILEUTILS_REFLINK) {
                if (!reflink)
                        flags |= FILEUTILS_REFLINK_ALWAYS;