scipr-lab / libsnark

C++ library for zkSNARKs
Other
1.8k stars 570 forks source link

Compilation warnings #167

Open MarkLTZ opened 4 years ago

MarkLTZ commented 4 years ago

Hello, compiling the monolithic version I have the following warning:

src/algebra/curves/alt_bn128/alt_bn128_g1.cpp: In function ‘(static initializers for src/algebra/curves/alt_bn128/alt_bn128_g1.cpp)’: src/algebra/curves/alt_bn128/alt_bn128_g1.cpp:24:13: warning: ‘libsnark::alt_bn128_G1::G1_zero.libsnark::alt_bn128_G1::X’ is used uninitialized in this function [-Wuninitialized] 24 | this->X = G1_zero.X; | ~~^~~~~ src/algebra/curves/alt_bn128/alt_bn128_g1.cpp:25:13: warning: ‘libsnark::alt_bn128_G1::G1_zero.libsnark::alt_bn128_G1::Y’ is used uninitialized in this function [-Wuninitialized] 25 | this->Y = G1_zero.Y; | ~~^~~~~ src/algebra/curves/alt_bn128/alt_bn128_g1.cpp:26:13: warning: ‘libsnark::alt_bn128_G1::G1_zero.libsnark::alt_bn128_G1::Z’ is used uninitialized in this function [-Wuninitialized] 26 | this->Z = G1_zero.Z; | ~~^~~~~

Could you please help me to solve it? Thanks, Mark