]> git.proxmox.com Git - pve-installer.git/commitdiff
tui: fix warning about unused function
authorChristoph Heiss <c.heiss@proxmox.com>
Mon, 5 Jun 2023 11:20:46 +0000 (13:20 +0200)
committerChristoph Heiss <c.heiss@proxmox.com>
Wed, 14 Jun 2023 08:39:56 +0000 (10:39 +0200)
yes_no_dialog() is not used in debug builds; due to it's only usage in
trigger_abort_install_dialog() being only enabled in release builds for
brevity reasons.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-tui-installer/src/main.rs

index aee7929268dda3ade9dd6eecff274b0c2819163a..19b530b480c93c85ec9bf5e5a4d23f11ee8e7935 100644 (file)
@@ -276,6 +276,7 @@ fn switch_to_prev_screen(siv: &mut Cursive) {
     siv.set_screen(id);
 }
 
+#[cfg(not(debug_assertions))]
 fn yes_no_dialog(
     siv: &mut Cursive,
     title: &str,