Avoid -Wmaybe-uninitialized when compiling with gcc -O1

This commit is contained in:
Hennadii Stepanov 2023-06-28 07:45:57 +01:00
parent 0fa84f869d
commit a6ca76cdf2
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -288,7 +288,9 @@ static void secp256k1_ecmult_strauss_wnaf(const struct secp256k1_strauss_state *
} }
/* Bring them to the same Z denominator. */ /* Bring them to the same Z denominator. */
if (no) {
secp256k1_ge_table_set_globalz(ECMULT_TABLE_SIZE(WINDOW_A) * no, state->pre_a, state->aux); secp256k1_ge_table_set_globalz(ECMULT_TABLE_SIZE(WINDOW_A) * no, state->pre_a, state->aux);
}
for (np = 0; np < no; ++np) { for (np = 0; np < no; ++np) {
for (i = 0; i < ECMULT_TABLE_SIZE(WINDOW_A); i++) { for (i = 0; i < ECMULT_TABLE_SIZE(WINDOW_A); i++) {