From 89a6ee92907da832c16f239627d80d0f56a781d8 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sun, 27 Aug 2023 15:39:09 -0400 Subject: [PATCH] Silence warning when building in release --- .../src/ringct/bulletproofs/plus/weighted_inner_product.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coins/monero/src/ringct/bulletproofs/plus/weighted_inner_product.rs b/coins/monero/src/ringct/bulletproofs/plus/weighted_inner_product.rs index 6840be37..9aea2148 100644 --- a/coins/monero/src/ringct/bulletproofs/plus/weighted_inner_product.rs +++ b/coins/monero/src/ringct/bulletproofs/plus/weighted_inner_product.rs @@ -192,6 +192,8 @@ impl WipStatement { witness: WipWitness, ) -> Option { let WipStatement { generators, P, mut y } = self; + #[cfg(not(debug_assertions))] + let _ = P; if generators.len() != witness.a.len() { return None;