mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +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,7 +685,9 @@ struct LinuxDerivationBuilder : DerivationBuilderImpl
|
|||
chmod_(dst, 0555);
|
||||
} else
|
||||
# endif
|
||||
{
|
||||
doBind(i.second.source, chrootRootDir + i.first, i.second.optional);
|
||||
}
|
||||
}
|
||||
|
||||
/* Bind a new instance of procfs on /proc. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue