compute_ctl: Fix unused variable on non-Linux (#7646)

Introduced by refactorings from #7577.

See an example check-macos-build failure here:
https://github.com/neondatabase/neon/actions/runs/8992211409/job/24701531264
This commit is contained in:
Em Sharnoff
2024-05-07 15:35:23 -07:00
committed by GitHub
parent 26b1483204
commit b827e7b330

View File

@@ -378,7 +378,8 @@ struct WaitSpecResult {
}
fn start_postgres(
matches: &clap::ArgMatches,
// need to allow unused because `matches` is only used if target_os = "linux"
#[allow(unused_variables)] matches: &clap::ArgMatches,
WaitSpecResult {
compute,
http_port,