]> wimlib.net Git - wimlib/blobdiff - src/update_image.c
Replace BUILD_BUG_ON() with STATIC_ASSERT()
[wimlib] / src / update_image.c
index 03eb122edb693e9192c124839b7483603962f1ce..2b2c107b2cd2198ba40c222db43253eead799b7e 100644 (file)
@@ -689,7 +689,7 @@ attach_branch(struct wim_dentry *branch, const tchar *target_tstr,
        if (ret)
                goto out_free_branch;
 
-       BUILD_BUG_ON(WIM_PATH_SEPARATOR != OS_PREFERRED_PATH_SEPARATOR);
+       STATIC_ASSERT(WIM_PATH_SEPARATOR == OS_PREFERRED_PATH_SEPARATOR);
        ret = dentry_set_name(branch, path_basename(target_tstr));
        if (ret)
                goto out_free_target;