Skip to content

Fix warning when HAVE_EMBEDDED_SANDBOX_SHELL is not set#13286

Merged
edolstra merged 1 commit intomasterfrom
fix-warning
May 28, 2025
Merged

Fix warning when HAVE_EMBEDDED_SANDBOX_SHELL is not set#13286
edolstra merged 1 commit intomasterfrom
fix-warning

Conversation

@Ericson2314
Copy link
Member

Motivation

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.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

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.
@edolstra edolstra enabled auto-merge May 28, 2025 17:01
@edolstra edolstra merged commit 1c0ff52 into master May 28, 2025
24 of 25 checks passed
@edolstra edolstra deleted the fix-warning branch May 28, 2025 17:36
@roberth roberth added the backports ignored Seen but not applied label Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backports ignored Seen but not applied

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants