1
0
Fork 0
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:
John Ericson 2025-05-28 12:49:13 -04:00
parent cc926c332c
commit 24f5d7a9c3

View file

@ -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. */