diff options
author | Tadeas Moravec <moravec.tadeas@gmail.com> | 2018-12-01 13:03:32 +0000 |
---|---|---|
committer | Tadeas Moravec <moravec.tadeas@gmail.com> | 2018-12-01 13:03:32 +0000 |
commit | 6456cb415a16aab24694a246309f4c7f0ae5667c (patch) | |
tree | 72d125ea8b959b77b83342f1a5df60810cfe86e5 /src | |
parent | Merge pull request #4821 (diff) | |
download | monero-6456cb415a16aab24694a246309f4c7f0ae5667c.tar.xz |
Bulletproof: Initialize members in default construtor.
Fixing a build warning on g++ 7.3.0
Diffstat (limited to 'src')
-rw-r--r-- | src/ringct/rctTypes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ringct/rctTypes.h b/src/ringct/rctTypes.h index 18290637b..487ea6f32 100644 --- a/src/ringct/rctTypes.h +++ b/src/ringct/rctTypes.h @@ -187,7 +187,8 @@ namespace rct { rct::keyV L, R; rct::key a, b, t; - Bulletproof() {} + Bulletproof(): + A({}), S({}), T1({}), T2({}), taux({}), mu({}), a({}), b({}), t({}) {} Bulletproof(const rct::key &V, const rct::key &A, const rct::key &S, const rct::key &T1, const rct::key &T2, const rct::key &taux, const rct::key &mu, const rct::keyV &L, const rct::keyV &R, const rct::key &a, const rct::key &b, const rct::key &t): V({V}), A(A), S(S), T1(T1), T2(T2), taux(taux), mu(mu), L(L), R(R), a(a), b(b), t(t) {} Bulletproof(const rct::keyV &V, const rct::key &A, const rct::key &S, const rct::key &T1, const rct::key &T2, const rct::key &taux, const rct::key &mu, const rct::keyV &L, const rct::keyV &R, const rct::key &a, const rct::key &b, const rct::key &t): |