mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Fix warning when HAVE_EMBEDDED_SANDBOX_SHELL
is not set
Clang doesn't like the double indent that is needed for the `if...else` that is CPP'd away. Adding braces is fine in the `if...else...` case, and fine as a naked block in the CPP'd away case, and properly-indented both ways.
This commit is contained in:
parent
cc926c332c
commit
24f5d7a9c3
1 changed files with 2 additions and 0 deletions
|
@ -685,8 +685,10 @@ struct LinuxDerivationBuilder : DerivationBuilderImpl
|
||||||
chmod_(dst, 0555);
|
chmod_(dst, 0555);
|
||||||
} else
|
} else
|
||||||
# endif
|
# endif
|
||||||
|
{
|
||||||
doBind(i.second.source, chrootRootDir + i.first, i.second.optional);
|
doBind(i.second.source, chrootRootDir + i.first, i.second.optional);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Bind a new instance of procfs on /proc. */
|
/* Bind a new instance of procfs on /proc. */
|
||||||
createDirs(chrootRootDir + "/proc");
|
createDirs(chrootRootDir + "/proc");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue