GCC 6 reports a warning in ntfs_allowed_dir_access() because the code has misleading indentation. Fix by adding braces. There is no actual change in behavior because of the '(allowed == 2)' condition.
Signed-off-by: Eric Biggers <ebigge...@gmail.com> --- src/ntfs-3g.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 2578fef..702d676 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -332,6 +332,7 @@ static int ntfs_allowed_dir_access(struct SECURITY_CONTEXT *scx, allowed = 1; else #endif + { if (dir_ni) allowed = ntfs_real_allowed_access(scx, dir_ni, accesstype); @@ -374,6 +375,7 @@ static int ntfs_allowed_dir_access(struct SECURITY_CONTEXT *scx, ntfs_inode_close(ni2); } } + } return (allowed); } -- 2.9.0 ------------------------------------------------------------------------------ _______________________________________________ ntfs-3g-devel mailing list ntfs-3g-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel