bellperson
bellperson copied to clipboard
编译中的一些warning
warning: unused variable: exp_bits
--> /home/bugx/lotus/bellperson/src/gpu/multiexp.rs:110:13
|
110 | let exp_bits = exp_size::<E>() * 8;
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: _exp_bits
|
= note: #[warn(unused_variables)]
on by default
Compiling reqwest v0.10.10
warning: constant is never used: MAX_WINDOW_SIZE
--> /home/bugx/lotus/bellperson/src/gpu/multiexp.rs:19:1
|
19 | const MAX_WINDOW_SIZE: usize = 12;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)]
on by default
warning: constant is never used: MEMORY_PADDING
--> /home/bugx/lotus/bellperson/src/gpu/multiexp.rs:21:1
|
21 | const MEMORY_PADDING: f64 = 0.1f64; // Let 20% of GPU memory be free
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function is never used: calc_best_chunk_size
--> /home/bugx/lotus/bellperson/src/gpu/multiexp.rs:76:4
|
76 | fn calc_best_chunk_size(max_window_size: usize, core_count: usize, exp_bits: usize) -> usize {
| ^^^^^^^^^^^^^^^^^^^^
warning: function is never used: calc_chunk_size
--> /home/bugx/lotus/bellperson/src/gpu/multiexp.rs:87:4
|
87 | fn calc_chunk_size<E>(mem: u64, core_count: usize) -> usize
| ^^^^^^^^^^^^^^^
Compiling phase21 v0.11.0 warning: 5 warnings emitted
this is a debug code, not release, you can ignore it.